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 48b1186 commit 48aa062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/git_clang-format_hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ check_clang_format() {
fi
}

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

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

Expand Down

0 comments on commit 48aa062

Please sign in to comment.