diff options
Diffstat (limited to 'bash/bashrc.d/cf.bash')
-rw-r--r-- | bash/bashrc.d/cf.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/bashrc.d/cf.bash b/bash/bashrc.d/cf.bash index cb06aa56..1a375021 100644 --- a/bash/bashrc.d/cf.bash +++ b/bash/bashrc.d/cf.bash @@ -7,15 +7,15 @@ cf() { dir=${1:-$PWD} # Error conditions - if [[ ! -e $dir ]]; then + if [[ ! -e $dir ]] ; then printf 'bash: cf: %s does not exist\n' \ "$dir" >&2 return 1 - elif [[ ! -d $dir ]]; then + elif [[ ! -d $dir ]] ; then printf 'bash: cf: %s is not a directory\n' \ "$dir" >&2 return 1 - elif [[ ! -r $dir ]]; then + elif [[ ! -r $dir ]] ; then printf 'bash: cf: %s is not readable\n' \ "$dir" >&2 return 1 |