diff --git a/.github/scripts/watch.sh b/.github/scripts/watch.sh index f4c13dba6..aa84a7028 100755 --- a/.github/scripts/watch.sh +++ b/.github/scripts/watch.sh @@ -9,7 +9,6 @@ find $WATCHER_PATH -type f -print0 | while IFS= read -r -d '' file; do # Check if the file contains the string "WATCHER_URL" and is therefore a watcher file cat "$file" | grep 'WATCHER_URL' >> /dev/null || continue - # Get the JSON from the first line of the file HEAD=$(cat "$file" | grep 'WATCHER_URL') @@ -26,15 +25,14 @@ find $WATCHER_PATH -type f -print0 | while IFS= read -r -d '' file; do # Check if the hashes are equal if [ "$WATCHER_HASH" == "$CALLED_HASH" ]; then - echo "Both strings are equal." + echo "Both hashes are equal." else - echo "Strings are not equal." + echo "Hashes are not equal." FILE_CONTENT=$(curl -sl $WATCHER_URL) # Check if $WATCHER_CONTAINS contains the string "null" and is therefore empty or not set if [[ $WATCHER_CONTAINS == "null" ]]; then - echo "No contain set" echo 1 > error.txt fi # Check if $WATCHER_CONTAINS contains the string $WATCHER_CONTAINS and if not call the Slack webhook