diff --git a/.github/scripts/watch.sh b/.github/scripts/watch.sh index dbae8e651..96078b7cb 100755 --- a/.github/scripts/watch.sh +++ b/.github/scripts/watch.sh @@ -14,14 +14,14 @@ file_contains(){ # Check if $WATCHER_CONTAINS contains the string "null" and is therefore empty or not set if [[ $WATCHER_CONTAINS == "null" ]]; then echo "No contain set" - ERROR_FOUND=1 + printf -v "$ERROR_FOUND" '1' fi # Check if $WATCHER_CONTAINS contains the string $WATCHER_CONTAINS and if not call the Slack webhook if [[ $FILE_CONTENT == *"$WATCHER_CONTAINS"* ]]; then echo "String found!" else echo "String not found! Please check $WATCHER_URL" - ERROR_FOUND=1 + printf -v "$ERROR_FOUND" '1' #curl -X POST -H 'Content-type: application/json' --data '{"text":"String not found - not nice!"}' $SLACK_WEBHOOK fi }