scripts/deploy: fix off-by-one in runOnTarget

This commit is contained in:
2024-06-19 21:05:37 +00:00
parent 9e92069ba3
commit 2e44abc55d

View File

@@ -106,6 +106,7 @@ destructive() {
runOnTarget() { runOnTarget() {
local host="$1" local host="$1"
shift
# run the command ($@) on the machine we're deploying to. # run the command ($@) on the machine we're deploying to.
# if that's a remote machine, then do it via ssh, else local shell. # if that's a remote machine, then do it via ssh, else local shell.
if [ -n "$host" ] && [ "$host" != "$SELF" ]; then if [ -n "$host" ] && [ "$host" != "$SELF" ]; then