fixed some weird issues when code is living on a link.
[feisty_meow.git] / scripts / security / ssh.sh
index 48add7118461a11fd447b4cd7edfa022ab4a1bc3..064ecf8a112c86021f2e970ad7fd29996648b810 100755 (executable)
@@ -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.