Adding interactivity again, seeing why it wouldn't work?

This commit is contained in:
Adsooi 2022-08-20 22:24:12 +02:00
parent dfe151312f
commit 0b3a551ed3
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -75,8 +75,8 @@ $full_script"
echo "$full_script" | ssh -q $host "tee run.sh" 1>/dev/null
info "Transmitted script"
# Run and remove it.
ssh $host PASSWORD="$pswd" "bash run.sh && rm run.sh"
#ssh -t $host PASSWORD="$pswd" "bash -i run.sh && rm run.sh"
#ssh $host PASSWORD="$pswd" "bash run.sh && rm run.sh"
ssh -t $host PASSWORD="$pswd" "bash -i run.sh && rm run.sh"
rm tmp.sh
else
box "Skipping ${host}..."