From b87fbc91cb787c2b0a80dc59e71bb97f87de1254 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 2 May 2023 11:47:01 +0000 Subject: [PATCH] checksrc.sh: fix it to run from any current directory Also silence a shellcheck warning. Cherry-picked from #1017 --- ci/checksrc.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/checksrc.sh b/ci/checksrc.sh index 3de54115..80789f88 100755 --- a/ci/checksrc.sh +++ b/ci/checksrc.sh @@ -2,10 +2,13 @@ set -e +cd "$(dirname "$0")/.." + FILES="src/*.[ch] include/*.h example/*.c tests/*.[ch]" WHITELIST="-Wsrc/libssh2_config.h" # shellcheck disable=SC2086 +# shellcheck disable=SC2248 perl ./ci/checksrc.pl -i4 -m79 \ -ASNPRINTF \ -ACOPYRIGHT \