Add missing shebangs that cause `S6 warning: unable to spawn ./finish: Exec format error` when `ONESHOT=true`. Fixes #28 Also brings the method for killing a container via service exit inline with s6's documented method Reviewed-on: #29
9 lines
195 B
Plaintext
9 lines
195 B
Plaintext
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
if [ $ONE_SHOT == "false" ]; then
|
|
|
|
# Export exit code if not a ONE_SHOT
|
|
echo "$e" > /run/s6-linux-init-container-results/exitcode
|
|
|
|
fi |