Skip to content

Commit

Permalink
Fix wrong pre-commmit
Browse files Browse the repository at this point in the history
  • Loading branch information
morebtcg committed Oct 9, 2024
1 parent 8f8dcdf commit fd4a00a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
bash gradlew verifyGoogleJavaFormat
result=$?
printf "the verifyGoogleJavaFormat result code is $result"
if [[ "$result" = 0 ]] ; then
if [ "$result" -eq 0 ]; then
echo "\033[32m
....
....
Expand All @@ -30,4 +30,4 @@ else
....
\033[0m"
exit 1
fi
fi

0 comments on commit fd4a00a

Please sign in to comment.