aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-06-24 15:42:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-06-24 15:42:53 +1200
commit638825917f94e07684c21f9682383983f1d8b651 (patch)
tree6187834adcf8c915d3cb5fa5b3523a375ddde386 /sh
parentSharing keychain(1) profile script (diff)
downloaddotfiles-638825917f94e07684c21f9682383983f1d8b651.tar.gz
dotfiles-638825917f94e07684c21f9682383983f1d8b651.zip
Discard stderr from command calls
Looks like older versions of Bash emit well-intended error messages if the command is not found that newer ones don't
Diffstat (limited to 'sh')
-rw-r--r--sh/profile.d/keychain.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/profile.d/keychain.sh b/sh/profile.d/keychain.sh
index 9d7f5e23..a53edb65 100644
--- a/sh/profile.d/keychain.sh
+++ b/sh/profile.d/keychain.sh
@@ -1,6 +1,6 @@
# Keychain
-command -v ssh-askpass >/dev/null \
+command -v ssh-askpass >/dev/null 2>&1 \
&& export SSH_ASKPASS=`which ssh-askpass`
-command -v keychain >/dev/null \
+command -v keychain >/dev/null 2>&1 \
&& eval `keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda`