diff --git a/hooks/pre-commit b/hooks/pre-commit index 2c9b36db2..271a4b288 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -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 .... .... @@ -30,4 +30,4 @@ else .... \033[0m" exit 1 -fi \ No newline at end of file +fi