aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-05 13:30:14 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-05 13:30:14 +1200
commit350fc5e6ed4d35638c6493e210dbe7a35b5fa099 (patch)
treeed398c66b9f9abe45d31b0845e7714d7c421c862 /sh
parentAvoid using builtin names for promptt function arg (diff)
downloaddotfiles-350fc5e6ed4d35638c6493e210dbe7a35b5fa099.tar.gz
dotfiles-350fc5e6ed4d35638c6493e210dbe7a35b5fa099.zip
More thorough quoting
Diffstat (limited to 'sh')
-rw-r--r--sh/profile4
-rw-r--r--sh/profile.d/keychain.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/sh/profile b/sh/profile
index 813fb7cc..14b0a56b 100644
--- a/sh/profile
+++ b/sh/profile
@@ -15,8 +15,8 @@ export PATH
# Load all supplementary scripts in ~/.profile.d
if [ -d "$HOME/.profile.d" ]; then
- for file in $HOME/.profile.d/*; do
- . $file
+ for file in "$HOME/.profile.d"/*; do
+ . "$file"
done
fi
diff --git a/sh/profile.d/keychain.sh b/sh/profile.d/keychain.sh
index 08f1a4cc..a3659c60 100644
--- a/sh/profile.d/keychain.sh
+++ b/sh/profile.d/keychain.sh
@@ -1,11 +1,11 @@
# ssh-askpass setup
if command -v ssh-askpass >/dev/null 2>&1; then
- SSH_ASKPASS=$(which ssh-askpass)
+ SSH_ASKPASS="$(which ssh-askpass)"
export SSH_ASKPASS
fi
# keychain setup
if command -v keychain >/dev/null 2>&1; then
- eval $(keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda)
+ eval "$(keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda)"
fi