diff options
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r-- | bash/bashrc.d/cd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash index 860b65b5..186ddceb 100644 --- a/bash/bashrc.d/cd.bash +++ b/bash/bashrc.d/cd.bash @@ -6,7 +6,7 @@ __cd() { opts[${#opts[@]}]="-$opt" done shift $(($OPTIND-1)) - if [[ $# -eq 2 ]]; then + if (($# == 2)); then if [[ "$PWD" == *"$1"* ]]; then builtin cd "${opts[@]}" "${PWD/$1/$2}" else |