diff --git a/tinystatus b/tinystatus index 838370b..2a9fa28 100755 --- a/tinystatus +++ b/tinystatus @@ -86,8 +86,10 @@ EOF outagenb=$(find ${tmp}/ko -mindepth 1 | grep -c 'status$') if [ ${outagenb} -ne 0 ]; then echo "" + exitcode=1 else echo "" + exitcode=0 fi cat << EOF

Services

@@ -122,3 +124,5 @@ cat </dev/null +# Allow the script execution itself to signal success, e.g. for use in healthchecks +exit ${exitcode}