1
1
Fork 0

v0.2.0 of watch-containers.sh

This commit is contained in:
david 2023-10-31 22:06:48 +01:00
parent 03cd15584c
commit 1c140865f8
1 changed files with 5 additions and 3 deletions

View File

@ -170,14 +170,16 @@ else
fi
# Post result to Healthchecks
if [[ -n "$1" ]]; then
if lib_is_url "$1"; then
if [[ -n "$1" ]] && lib_is_url "$1"; then
if [[ "$RESULT" == "No changes detected" ]]; then
lib_healthchecks "$1" "$RESULT"
else
lib_healthchecks "${1%/}/fail" "$RESULT"
fi
fi
# Print result to screen
printf "%s\n" "$RESULT"
lib_print "$RESULT"
##
## Here be dragons