diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-05-28 21:41:13 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-05-28 21:41:13 +0200 |
commit | 9199eb1dbba77566b6cc54abe93344c308d9c8e7 (patch) | |
tree | f2902995b9b4f782124a2618122e94bdfacd0845 | |
parent | b07a88ed2d9e42ca49f97b3052ff13aa6e1c35c6 (diff) | |
download | ltask-9199eb1dbba77566b6cc54abe93344c308d9c8e7.tar.gz |
fix
-rwxr-xr-x | ltask | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -109,10 +109,8 @@ for hoststring in "${HOSTS_UNIQUE[@]}"; do IFS=$':' read hostname port <<< "$hoststring" [ ! -z $port ] && rexecargs+="-p $port " - [ ! -z $SSH_IDENTITY_FILE ] && rexecargs+="-i $SSH_IDENTITY_FILE " - [ ! -z $SSH_USER ] && rexecargs="$SSH_USER@" - - [ ${#FILES[@]} -gt 0 ] && scp -P ${port:=22} ${FILES[@]} ${SSH_USER:=$USER}@$hostname: + rexecargs+="-i ${SSH_IDENTITY_FILE:=~/.ssh/id_rsa} " + [ ! -z $SSH_USER ] && rexecargs+="$SSH_USER@" rexecargs+="$hostname " rexecargs+="$TASK_DIR/$TASK" @@ -120,5 +118,7 @@ for hoststring in "${HOSTS_UNIQUE[@]}"; do echo echo "<=== $hostname ===>" echo + + [ ${#FILES[@]} -gt 0 ] && scp -i ${SSH_IDENTITY_FILE:=~/.ssh/id_rsa} -P ${port:=22} ${FILES[@]} ${SSH_USER:=$USER}@$hostname: $TOOL_DIR/rexec.sh $rexecargs done |