From 5dd638fecd5c31b019c62ebb817bdef11a8a49b2 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 5 Sep 2020 15:56:26 +1200 Subject: Update GitLab pipeline Misc restructuring to increase reuse between jobs. Also fixes missing python issue on recent Ubuntu containers --- test/run-shellcheck.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 test/run-shellcheck.sh (limited to 'test') diff --git a/test/run-shellcheck.sh b/test/run-shellcheck.sh new file mode 100755 index 0000000..1319ba5 --- /dev/null +++ b/test/run-shellcheck.sh @@ -0,0 +1,13 @@ +#!/bin/bash -ex + +pushd "$(dirname "$0")" + +has_error=0 +while IFS= read -d $'\0' -r script ; do + echo "$script" + if ! shellcheck -e SC1091 "$script" ; then + has_error=1 + fi +done < <(find .. -name '*.sh' -print0) + +exit "$has_error" -- cgit v1.1