Skip to content

Commit 1d3675f

Browse files
committed
Check exit code directly in run-go-ruleguard.sh
1 parent 7a577b7 commit 1d3675f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

run-go-ruleguard.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ PASS=true
1212

1313
for FILE in "$@"
1414
do
15-
ruleguard -c 0 -rules "$RULE_FILE" "$FILE"
16-
if [ "$?" -eq 1 ]; then
15+
16+
if ! ruleguard -c 0 -rules "$RULE_FILE" "$FILE";
17+
then
1718
PASS=false
1819
fi
1920
done

0 commit comments

Comments
 (0)