Skip to content

Commit

Permalink
can i install in precommit?
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Aug 5, 2022
1 parent 4af2d1f commit 48b1186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/git_clang-format_hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ check_clang_format() {
else
echo "SETUP ERROR: no git-clang-format executable found, or it is not executable"
echo "$help"
exit 1
return 1
fi
}

check_clang_format || $(apt-get update; apt-get install -y clang-format)
check_clang_format || (apt-get update; apt-get install -y clang-format)

readonly out=$(git clang-format --style=file -v)

Expand Down

0 comments on commit 48b1186

Please sign in to comment.