From 4c11bccd9698bbd5e1aaeb8b93d480d78cf2de1f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 3 May 2015 17:33:46 +1200 Subject: Remove superfluous null check --- bash/bashrc.d/bd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d/bd.bash') diff --git a/bash/bashrc.d/bd.bash b/bash/bashrc.d/bd.bash index e856fc40..2bc70f18 100644 --- a/bash/bashrc.d/bd.bash +++ b/bash/bashrc.d/bd.bash @@ -3,7 +3,7 @@ bd() { # If there are no arguments, we just move up one directory (cd ..) if [[ $1 ]] ; then - dir="${PWD%/${1:?}*}"/"$1" + dir="${PWD%/$1*}"/"$1" else dir=.. fi -- cgit v1.2.3