mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-18 15:20:56 +03:00
checksrc.sh: fix it to run from any current directory
Also silence a shellcheck warning. Cherry-picked from #1017
This commit is contained in:
@@ -2,10 +2,13 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
FILES="src/*.[ch] include/*.h example/*.c tests/*.[ch]"
|
FILES="src/*.[ch] include/*.h example/*.c tests/*.[ch]"
|
||||||
WHITELIST="-Wsrc/libssh2_config.h"
|
WHITELIST="-Wsrc/libssh2_config.h"
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
# shellcheck disable=SC2248
|
||||||
perl ./ci/checksrc.pl -i4 -m79 \
|
perl ./ci/checksrc.pl -i4 -m79 \
|
||||||
-ASNPRINTF \
|
-ASNPRINTF \
|
||||||
-ACOPYRIGHT \
|
-ACOPYRIGHT \
|
||||||
|
|||||||
Reference in New Issue
Block a user