aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-11-13 00:50:40 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-11-13 00:57:28 +1300
commit4ef2780aeee06c1f727aa36d0610c3562507e996 (patch)
treec9712b66af5b409f294166d07e7b7eff4c07f502 /bin
parentSimplify/correct dmp(1) copying (diff)
downloaddotfiles-4ef2780aeee06c1f727aa36d0610c3562507e996.tar.gz
dotfiles-4ef2780aeee06c1f727aa36d0610c3562507e996.zip
Quote var in param expansion
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dmp2
-rwxr-xr-xbin/gms2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/dmp b/bin/dmp
index 2c412081..4299771d 100755
--- a/bin/dmp
+++ b/bin/dmp
@@ -1,7 +1,7 @@
#!/bin/sh
# Get the password store directory, bail if we can't
-pwsd=${PASSWORD_STORE_DIR:-$HOME/.password-store}
+pwsd=${PASSWORD_STORE_DIR:-"$HOME"/.password-store}
pwsd=${pwsd%/}
[ -n "$pwsd" ] || exit
diff --git a/bin/gms b/bin/gms
index 1cc5b0df..01cdaa2f 100755
--- a/bin/gms
+++ b/bin/gms
@@ -20,7 +20,7 @@ uid=$(id -u) || exit
# Iterate through the getmailrc.* files in $GETMAIL if defined, or
# $HOME/.getmail if not
-for rcfile in "${GETMAIL:-$HOME/.getmail}"/getmailrc.* ; do (
+for rcfile in "${GETMAIL:-"$HOME"/.getmail}"/getmailrc.* ; do (
lockdir=${TMPDIR:-/tmp}/getmail.$uid.${rcfile##*/}.lock
mkdir -m 0700 -- "$lockdir" 2>/dev/null || exit
try -n 3 -s 15 getmail --rcfile "$rcfile" "$@"