Skip to content

Commit

Permalink
exit 0 if configmap-reload was terminated, but exit 1 if it failed
Browse files Browse the repository at this point in the history
  • Loading branch information
chinatsu committed Jul 20, 2021
1 parent 4e9300f commit 22bcdd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/bin/sh
/configmap-reload "$@" || true
/configmap-reload "$@"
if [ $? -ne 1 ]; then
exit 0
fi
exit 1

0 comments on commit 22bcdd0

Please sign in to comment.