Skip to content

Commit 9f98776

Browse files
committed
Fix launch.sh
- Changes into ~/webring first - Passes arguments along to script being invoked
1 parent c27c93e commit 9f98776

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ci/vulcan/launch.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@
44
# Runs one of the CI scripts based on the command provided to SSH
55
#
66

7+
set -e
8+
9+
cd ~/webring
10+
711
if [ -z "${SSH_ORIGINAL_COMMAND-x}" ]
812
then
913
echo '$SSH_ORIGINAL_COMMAND is not set' >&2
1014
exit 1
1115
fi
1216

13-
case "$SSH_ORIGINAL_COMMAND" in
17+
read -r cmd args <<< "$SSH_ORIGINAL_COMMAND"
18+
case "$cmd" in
1419
build-for-ci | cleanup | test | deploy )
15-
exec ./$SSH_ORIGINAL_COMMAND
20+
exec "./$cmd" $args
1621
;;
1722
*)
18-
printf 'Invalid command `%s`\n' "$SSH_ORIGINAL_COMMAND" >&2
23+
printf 'Invalid command `%s`\n' "$cmd" >&2
1924
exit 1
2025
;;
2126
esac

0 commit comments

Comments
 (0)