v0.2.0 of watch-containers.sh
This commit is contained in:
parent
03cd15584c
commit
1c140865f8
|
@ -170,14 +170,16 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Post result to Healthchecks
|
# Post result to Healthchecks
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$1" ]] && lib_is_url "$1"; then
|
||||||
if lib_is_url "$1"; then
|
if [[ "$RESULT" == "No changes detected" ]]; then
|
||||||
lib_healthchecks "$1" "$RESULT"
|
lib_healthchecks "$1" "$RESULT"
|
||||||
|
else
|
||||||
|
lib_healthchecks "${1%/}/fail" "$RESULT"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Print result to screen
|
# Print result to screen
|
||||||
printf "%s\n" "$RESULT"
|
lib_print "$RESULT"
|
||||||
|
|
||||||
##
|
##
|
||||||
## Here be dragons
|
## Here be dragons
|
||||||
|
|
Loading…
Reference in New Issue