Skip to content

Commit

Permalink
Tools/astyle: check_code_style_all.sh skip pre-commit hook if non-int…
Browse files Browse the repository at this point in the history
…eractive
  • Loading branch information
dagar authored and mrpollo committed Nov 27, 2024
1 parent 22c1f07 commit 68cbbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/astyle/check_code_style_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi

# install git pre-commit hook
HOOK_FILE="$DIR/../../.git/hooks/pre-commit"
if [ ! -f $HOOK_FILE ] && [ "$CI" != "true" ]; then
if [ ! -f $HOOK_FILE ] && [ "$CI" != "true" ] && [ $- == *i* ]; then
echo ""
echo -e "\033[31mNinja tip: add a git pre-commit hook to automatically check code style\033[0m"
echo -e "Would you like to install one now? (\033[94mcp ./Tools/astyle/pre-commit .git/hooks/pre-commit\033[0m): [y/\033[1mN\033[0m]"
Expand Down

0 comments on commit 68cbbaa

Please sign in to comment.