Only pipe exit code to container exit code if ONE_SHOT=false
This commit is contained in:
parent
f82ed81e2e
commit
02f9dbc024
@ -1,4 +1,9 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
echo "$e" > /run/s6-linux-init-container-results/exitcode
|
||||
if [ $ONE_SHOT == "false" ]; then
|
||||
|
||||
# Export exit code if not a ONE_SHOT
|
||||
echo "$e" > /run/s6-linux-init-container-results/exitcode
|
||||
|
||||
fi
|
@ -1,4 +1,9 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
echo "$e" > /run/s6-linux-init-container-results/exitcode
|
||||
if [ $ONE_SHOT == "false" ]; then
|
||||
|
||||
# Export exit code if not a ONE_SHOT
|
||||
echo "$e" > /run/s6-linux-init-container-results/exitcode
|
||||
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user