scripts/deploy: fix off-by-one in runOnTarget
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user