Updating run script

This commit is contained in:
Adsooi 2024-09-30 00:03:47 +02:00
parent 917f13d0e3
commit 367c276163
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -22,6 +22,9 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
echo ""
set +o history
# Cd into the directory of the library
script="$(readlink $0)"
if [ -z "$script" ]; then script="$0"; fi
@ -76,7 +79,7 @@ $full_script"
echo "$full_script" | ssh -q $host -p $port "tee run.sh" 1>/dev/null
info "Transmitted script"
# Run and remove it.
ssh -t $host -p $port PASSWORD="$pswd" "bash run.sh && rm run.sh"
ssh $host -p $port PASSWORD="$pswd" "bash run.sh && rm run.sh"
## Interactive shell does not work.
#ssh -t $host PASSWORD="$pswd" "bash -i run.sh && rm run.sh"
rm tmp.sh