Skip to content

Commit 13ce1a6

Browse files
committed
install.sh: Show ssh prefix on each command for remote installation
1 parent 2b60162 commit 13ce1a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,11 @@ command_exists() {
455455
}
456456

457457
sh_c() {
458-
echoh "+ $*"
458+
if [ "$SSH_ARGS" ]; then
459+
echoh "+ ssh "$SSH_ARGS" $*"
460+
else
461+
echoh "+ $*"
462+
fi
459463
if [ ! "${DRY_RUN-}" ]; then
460464
sh_f "$@"
461465
fi

0 commit comments

Comments
 (0)