mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 14:56:51 +08:00
Fix hook install script to create hook dir if it doesn't exist. (#6269)
This commit is contained in:
committed by
Daniel Agar
parent
48e7c784e7
commit
be14c11589
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user