aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-12-20 17:26:54 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-12-20 17:26:54 +0100
commitd1317d8ab1013ff47b29e86e01b9f0eae0046116 (patch)
treee439f7c396e5125d4c928f14319c2067ba53cf1c
parent6597bb4899b671a160776d48149b048f91892388 (diff)
downloadltask-d1317d8ab1013ff47b29e86e01b9f0eae0046116.tar.gz
add -i to globally set SSH identityHEADmasterdev
-rwxr-xr-xltask5
1 files changed, 5 insertions, 0 deletions
diff --git a/ltask b/ltask
index bb82507..eb93cd2 100755
--- a/ltask
+++ b/ltask
@@ -73,6 +73,7 @@ Options:
to target single hosts without defining
a custom target
-p Force parallel execution
+ -i specify a SSH identity file. This is overridden by tasks!
-h print this help text
-d DIR specify a different folder containing "tasks", "targets", and "assets"
EOF
@@ -100,6 +101,10 @@ for (( i=0; i < $ARGC;i++ )); do
-d)
i=$((i+1))
BASEDIR="${ARGV[$i]}";;
+ -i)
+ i=$((i+1))
+ SSH_IDENTITY_FILE="${ARGV[$i]}";;
+
*)
echo Invalid Argument ${ARGV[$i]}
echo $0 -h for help