From: Kamalesh Babulal Date: Fri, 25 Mar 2022 06:06:21 +0000 (+0530) Subject: bootstrap.sh: make it shellcheck complaint X-Git-Tag: v3.0~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d34f47bef688ee9d3f1d135b4aa38e94e42d9e8;p=thirdparty%2Flibcgroup.git 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 --- 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."