From d1317d8ab1013ff47b29e86e01b9f0eae0046116 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 20 Dec 2020 17:26:54 +0100 Subject: add -i to globally set SSH identity --- ltask | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3