Skip to content

Commit

Permalink
Test script
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 committed Dec 6, 2023
1 parent dedd071 commit 276941d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 276941d

Please sign in to comment.