From ac2f924dadb4d1e86135b1d9516c8c827e1a235b Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 25 Feb 2017 17:20:38 +0100 Subject: [PATCH] Correct indentation [ci skip] --- .githooks/pre-commit/check.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.githooks/pre-commit/check.sh b/.githooks/pre-commit/check.sh index e60ad7cd9..4364e88fb 100755 --- a/.githooks/pre-commit/check.sh +++ b/.githooks/pre-commit/check.sh @@ -31,7 +31,7 @@ function cleanup { git apply "$PATCH_FILE" 2> /dev/null rm "$PATCH_FILE" fi - exit $EXIT_CODE + exit $EXIT_CODE } # Register signal handlers @@ -51,7 +51,7 @@ if [ "$FILES" ]; then # If linter terminated with errors, abort commit if [ $? -gt 0 ]; then echo -e "\x1B[31m✗\x1B[0m Linter - \x1B[31m$MESSAGE\x1B[0m" - exit 1 + exit 1 else echo -e "\x1B[32m✓\x1B[0m Linter" fi @@ -60,7 +60,7 @@ if [ "$FILES" ]; then npm run flow --silent > /dev/null if [ $? -gt 0 ]; then echo -e "\x1B[31m✗\x1B[0m Flow - \x1B[31m$MESSAGE\x1B[0m" - exit 1 + exit 1 else echo -e "\x1B[32m✓\x1B[0m Flow" fi