fixed usage of BUILD_BEFORE which was erroneoulsy being used instead of FIRST_TARGETS...
[feisty_meow.git] / scripts / security / ssh.sh
index ca226c3cf21d12b913300850b3ea681758fc2ea8..064ecf8a112c86021f2e970ad7fd29996648b810 100755 (executable)
@@ -2,9 +2,13 @@
 
 # wraps our calling the secure shell and lets us pick our credentials.
 
-source "$FEISTY_MEOW_SCRIPTS/pick_credentials.sh"
+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.