We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27c93e commit 9f98776Copy full SHA for 9f98776
ci/vulcan/launch.sh
@@ -4,18 +4,23 @@
4
# Runs one of the CI scripts based on the command provided to SSH
5
#
6
7
+set -e
8
+
9
+cd ~/webring
10
11
if [ -z "${SSH_ORIGINAL_COMMAND-x}" ]
12
then
13
echo '$SSH_ORIGINAL_COMMAND is not set' >&2
14
exit 1
15
fi
16
-case "$SSH_ORIGINAL_COMMAND" in
17
+read -r cmd args <<< "$SSH_ORIGINAL_COMMAND"
18
+case "$cmd" in
19
build-for-ci | cleanup | test | deploy )
- exec ./$SSH_ORIGINAL_COMMAND
20
+ exec "./$cmd" $args
21
;;
22
*)
- printf 'Invalid command `%s`\n' "$SSH_ORIGINAL_COMMAND" >&2
23
+ printf 'Invalid command `%s`\n' "$cmd" >&2
24
25
26
esac
0 commit comments