From 0d34f47bef688ee9d3f1d135b4aa38e94e42d9e8 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 25 Mar 2022 11:36:21 +0530 Subject: [PATCH] bootstrap.sh: make it shellcheck complaint Make bootstrap.in shellcheck complaint. It fixes all the issues reported by the shellcheck version version 0.7.0. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 5d4086f5..60c0a005 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,7 +3,7 @@ set -ex -if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then +if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ] ; then cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ chmod +x .git/hooks/pre-commit && \ echo "Activated pre-commit hook." -- 2.47.2