Slightly more robust run_script function

This commit is contained in:
abejgonzalez
2021-10-07 23:12:05 -07:00
parent 4584a37951
commit f4b88ac913

View File

@@ -9,7 +9,9 @@ run () {
}
run_script () {
ssh -o "ServerAliveInterval=60" -o "StrictHostKeyChecking no" -t $SERVER 'bash -s' < $1 "$2"
SCRIPT=$1
shift
ssh -o "ServerAliveInterval=60" -o "StrictHostKeyChecking no" -t $SERVER 'bash -s' < $SCRIPT "$@"
}
clean () {