GHA: add shellcheck job and fix warnings, shell tidy-ups

Reviewed-by: Daniel Stenberg
Closes #13307
This commit is contained in:
Viktor Szakats 2024-04-07 10:02:49 +00:00
parent 2c4f836f70
commit fa69b41c77
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
12 changed files with 441 additions and 415 deletions

View file

@ -23,6 +23,8 @@
#
###########################################################################
set -eu
cat <<MOO
# Release tools
@ -31,14 +33,14 @@ produce this release tarball.
MOO
exists=`which dpkg`;
exists=$(command -v dpkg 2>/dev/null)
if test ! -e "$exists"; then
echo "(unknown, could not find dpkg)"
exit
echo "(unknown, could not find dpkg)"
exit
fi
debian() {
echo - $1: `dpkg -l $1 | grep ^ii | awk '{print $3}'`
echo "- $1: $(dpkg -l "$1" | grep ^ii | awk '{print $3}')"
}
debian autoconf
debian automake