-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Chore/jaino/#4
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
echo "Running git pre-commit hook" | ||
|
||
./gradlew ktlintFormat --daemon | ||
|
||
# $? = ".gradlew ktlintFormat --daemon"에 대한 return 값 | ||
STATUS=$? | ||
|
||
# 문제없이 끝났다면 exit 0, 아니면 1 | ||
# -ne: Not equals | ||
[ $STATUS -ne 0 ] && exit 1 | ||
exit 0 |