diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-03 17:33:46 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-03 17:33:46 +1200 |
commit | 4c11bccd9698bbd5e1aaeb8b93d480d78cf2de1f (patch) | |
tree | d52bcb3bc1d0b2c554398dcb44a769c58f76b469 /bash/bashrc.d | |
parent | Use FUNCNAME rather than hardcoding helper funcs (diff) | |
download | dotfiles-4c11bccd9698bbd5e1aaeb8b93d480d78cf2de1f.tar.gz dotfiles-4c11bccd9698bbd5e1aaeb8b93d480d78cf2de1f.zip |
Remove superfluous null check
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/bd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
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 |