From be14c11589690537460f3603aff99572e2df0e61 Mon Sep 17 00:00:00 2001 From: James Goppert Date: Fri, 6 Jan 2017 19:28:03 -0500 Subject: [PATCH] Fix hook install script to create hook dir if it doesn't exist. (#6269) --- Tools/check_code_style_all.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/check_code_style_all.sh b/Tools/check_code_style_all.sh index 9780a34c56..ba349cc02f 100755 --- a/Tools/check_code_style_all.sh +++ b/Tools/check_code_style_all.sh @@ -42,6 +42,7 @@ if [ ! -f $HOOK_FILE ] && [ "$CI" != "true" ]; then read user_cmd if [ "$user_cmd" == "y" ]; then echo -e "copying ./Tools/pre-commit -> .git/hooks/pre-commit" + mkdir -p $DIR/../.git/hooks cp $DIR/pre-commit $HOOK_FILE echo -e "\033[94mGreat, hook installed!\033[0m (checking style now)" else