From: Viktor Szakats Date: Sun, 13 Jul 2025 01:28:19 +0000 (+0200) Subject: GHA: minor tidy-ups X-Git-Tag: curl-8_15_0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bdd08b3b22abff58684f8e811e5e93380060771;p=thirdparty%2Fcurl.git GHA: minor tidy-ups - GHA/checksrc: make a step name more accurate. - cmakelint.sh: make sure to run from project root. To make it easier to run locally. - cmakelint.sh: use `set -eu`. Closes #17915 --- diff --git a/.github/workflows/checksrc.yml b/.github/workflows/checksrc.yml index 87087fe8e7..dc93c19de7 100644 --- a/.github/workflows/checksrc.yml +++ b/.github/workflows/checksrc.yml @@ -133,7 +133,7 @@ jobs: eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" zizmor --pedantic .github/workflows/*.yml - - name: 'shellcheck GHA' + - name: 'shellcheck CI' run: | eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" shellcheck --version diff --git a/scripts/cmakelint.sh b/scripts/cmakelint.sh index 5c5fc7040f..788f087305 100755 --- a/scripts/cmakelint.sh +++ b/scripts/cmakelint.sh @@ -38,8 +38,13 @@ # If such a file is ever added, then this can be portably fixed by switching to # "xargs -I{}" and appending {} to the end of the xargs arguments (which will # call cmakelint once per file) or by using the GNU extension "xargs -d'\n'". + +set -eu + +cd "$(dirname "$0")"/.. + { - if [ -n "$1" ]; then + if [ -n "${1:-}" ]; then for A in "$@"; do printf "%s\n" "$A"; done elif git rev-parse --is-inside-work-tree >/dev/null 2>&1; then git ls-files