Skip to content

Commit

Permalink
Test error set
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 committed Dec 6, 2023
1 parent ae240aa commit 998619c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ file_contains(){
fi
}

error_found($ERROR_FOUND) {
error_found() {
ERROR_FOUND=$1
if [ "$ERROR_FOUND" -eq 1 ]
then
echo "Error found, exiting..."
Expand Down Expand Up @@ -64,4 +65,4 @@ find $WATCHER_PATH -type f -print0 | while IFS= read -r -d '' file; do

done

error_found($ERROR_FOUND)
error_found $ERROR_FOUND

0 comments on commit 998619c

Please sign in to comment.