From 48aa0626646d067d4a58269a31db467434bcdfb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Fri, 5 Aug 2022 12:30:34 +0200 Subject: [PATCH] can i install in precommit? --- scripts/git_clang-format_hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/git_clang-format_hook.sh b/scripts/git_clang-format_hook.sh index 63fb6f571..f1989e99b 100755 --- a/scripts/git_clang-format_hook.sh +++ b/scripts/git_clang-format_hook.sh @@ -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)