From 0933c9c8bf3e9be46224d81073f4bb02094d6c40 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Aug 2015 14:35:25 +1200 Subject: Remove unnecessary trailing slash strip --- bash/bashrc.d/bd.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bash/bashrc.d') diff --git a/bash/bashrc.d/bd.bash b/bash/bashrc.d/bd.bash index 8ab3cd5e..10c9161d 100644 --- a/bash/bashrc.d/bd.bash +++ b/bash/bashrc.d/bd.bash @@ -30,9 +30,8 @@ bd() { ;; # Anything else with a leading / needs to anchor to the start of the - # path, strip off any trailing slash + # path /*) - dir=${req%/} if [[ ${PWD%*/} != "$dir"/* ]] ; then printf 'bash: %s: Directory name not in path\n' \ "$FUNCNAME" >&2 -- cgit v1.2.3