Slightly more robust run_script function
This commit is contained in:
4
.github/scripts/defaults.sh
vendored
4
.github/scripts/defaults.sh
vendored
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user