diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-04 01:26:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-04 01:26:35 +1200 |
commit | 22eb062d043b9fdee3e33d0779a5ddec61641f4c (patch) | |
tree | 46020db3daf67941b7a41b0ef42aea3f2da13473 | |
parent | Handle empty pass(1) completes better (diff) | |
download | dotfiles-22eb062d043b9fdee3e33d0779a5ddec61641f4c.tar.gz dotfiles-22eb062d043b9fdee3e33d0779a5ddec61641f4c.zip |
Remove unneeded quoting
-rw-r--r-- | bash/bashrc.d/pass.bash | 2 | ||||
-rw-r--r-- | bash/bashrc.d/ud.bash | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/pass.bash b/bash/bashrc.d/pass.bash index 61550b9e..e173531f 100644 --- a/bash/bashrc.d/pass.bash +++ b/bash/bashrc.d/pass.bash @@ -9,7 +9,7 @@ _pass() { # If we can't read the password directory, just bail local passdir=${PASSWORD_STORE_DIR:-$HOME/.password-store} - if [[ ! -r "$passdir" ]] ; then + if [[ ! -r $passdir ]] ; then return 1 fi diff --git a/bash/bashrc.d/ud.bash b/bash/bashrc.d/ud.bash index c83b7c56..16a79cba 100644 --- a/bash/bashrc.d/ud.bash +++ b/bash/bashrc.d/ud.bash @@ -13,7 +13,7 @@ ud() { # Check and save optional second argument, target directory; default to # $PWD (typical usage case) local dir=${2:-$PWD} - if [[ ! -e "$dir" ]] ; then + if [[ ! -e $dir ]] ; then printf 'bash: %s: Target dir %s does not exist\n' "$FUNCNAME" "$2" >&2 return 1 fi |