This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Formatting code..." | |
./gradlew googleJavaFormat formatKotlin --daemon | |
status=$? | |
if [ "$status" = 0 ]; then | |
echo "Formatting complete - adding files to Git" | |
git add . | |
exit 0 | |
else | |
echo 1>&2 "Unable to format code" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment