Skip to content

Commit fd4a00a

Browse files
committed
Fix wrong pre-commmit
1 parent 8f8dcdf commit fd4a00a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hooks/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
bash gradlew verifyGoogleJavaFormat
1111
result=$?
1212
printf "the verifyGoogleJavaFormat result code is $result"
13-
if [[ "$result" = 0 ]] ; then
13+
if [ "$result" -eq 0 ]; then
1414
echo "\033[32m
1515
....
1616
....
@@ -30,4 +30,4 @@ else
3030
....
3131
\033[0m"
3232
exit 1
33-
fi
33+
fi

0 commit comments

Comments
 (0)