]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
bootstrap.sh: make it shellcheck complaint
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 25 Mar 2022 06:06:21 +0000 (11:36 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 29 Mar 2022 21:11:09 +0000 (15:11 -0600)
Make bootstrap.in shellcheck complaint.  It fixes all the issues
reported by the shellcheck version version 0.7.0.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
bootstrap.sh

index 5d4086f5532e6b67dae8cd6341bdbbdc3149072e..60c0a0057668f900a0cbee590b71a5326a2f3fac 100755 (executable)
@@ -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."