diff --git a/.github/scripts/watch.sh b/.github/scripts/watch.sh index 58e6cf6b2..706b9d9f5 100755 --- a/.github/scripts/watch.sh +++ b/.github/scripts/watch.sh @@ -28,7 +28,7 @@ file_contains(){ error_found() { echo "Error found: $1" - if [ "$1" -eq 1 ] + if [ "$1" -eq 0 ] then echo "Error found, exiting..." exit 1 @@ -37,7 +37,6 @@ error_found() { # Find all files in the snippets folder find $WATCHER_PATH -type f -print0 | while IFS= read -r -d '' file; do - ERROR_FOUND=0 # Check if the file contains the string "WATCHER_URL" and is therefore a watcher file cat "$file" | grep 'WATCHER_URL' >> /dev/null || continue