aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-04 01:26:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-04 01:26:35 +1200
commit22eb062d043b9fdee3e33d0779a5ddec61641f4c (patch)
tree46020db3daf67941b7a41b0ef42aea3f2da13473 /bash/bashrc.d
parentHandle empty pass(1) completes better (diff)
downloaddotfiles-22eb062d043b9fdee3e33d0779a5ddec61641f4c.tar.gz
dotfiles-22eb062d043b9fdee3e33d0779a5ddec61641f4c.zip
Remove unneeded quoting
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/pass.bash2
-rw-r--r--bash/bashrc.d/ud.bash2
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