Only pipe exit code to container exit code if ONE_SHOT=false
All checks were successful
Test Pull Request / Build Image (pull_request) Successful in 4m43s
Test Pull Request / Notify (pull_request) Successful in 3s

This commit is contained in:
MrMeeb 2024-06-15 15:41:26 +00:00
parent f82ed81e2e
commit 02f9dbc024
Signed by: MrMeeb
GPG Key ID: 3864A01CC606E310
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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