Improvements to CI script

This commit is contained in:
Saverio Miroddi 2021-04-24 09:30:46 +02:00
parent 93289c7c09
commit 45def31594
1 changed files with 12 additions and 6 deletions

View File

@ -6,10 +6,16 @@ set -o nounset
set -o errtrace set -o errtrace
shopt -s inherit_errexit shopt -s inherit_errexit
ci/run_shellcheck mkdir -p /opt/shellcheck if [[ ! -e /opt/shellcheck/shellcheck ]]; then
[[ ! -e /opt/shellcheck/shellcheck ]] && wget -qO- https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz mkdir -p /opt/shellcheck
| tar -xJv -O shellcheck-stable/shellcheck | sudo tee /opt/shellcheck/shellcheck
> /dev/null || true wget -qO- https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz \
sudo chmod +x /opt/shellcheck/shellcheck | tar xJv -O shellcheck-stable/shellcheck \
> /opt/shellcheck/shellcheck
chmod +x /opt/shellcheck/shellcheck
fi
/opt/shellcheck/shellcheck --version /opt/shellcheck/shellcheck --version
/opt/shellcheck/shellcheck $(grep -lzP '^#!/bin/\\w+sh' -r .)
grep -lZP '^#!/bin/\w+sh' -R | xargs -0 /opt/shellcheck/shellcheck