updated for new paths also, which revealed a few locations that are
[feisty_meow.git] / scripts / security / ssh.sh
old mode 100755 (executable)
new mode 100644 (file)
index 48add71..064ecf8
@@ -4,7 +4,11 @@
 
 source "$FEISTY_MEOW_SCRIPTS/security/pick_credentials.sh"
 
-\ssh -i "$keyfile" -X $*
+if [ ! -z "$keyfile" ]; then
+  \ssh -i "$keyfile" -X $*
+else
+  \ssh -X $*
+fi
 
 if [ $? -eq 0 ]; then
   # we don't want to emit anything extra if this is being driven by git.