From: Frank Brehm Date: Thu, 29 Dec 2022 12:37:03 +0000 (+0100) Subject: Mofifying shellcheks in gitlab/linter.yaml X-Git-Tag: v1.0~14 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=d26bd5b384470b7c0bb6c16a41adcb4f961b3ac4;p=pixelpark%2Fpython-packaging.git Mofifying shellcheks in gitlab/linter.yaml --- diff --git a/gitlab/linter.yaml b/gitlab/linter.yaml index e1b3ab6..860a873 100644 --- a/gitlab/linter.yaml +++ b/gitlab/linter.yaml @@ -3,6 +3,7 @@ variables: PYTHON_INIT_FILE: '' PYTHON_TEST_PATHS: 'bin lib setup.py' + SHELLSCRIPTS: '' UPDATE_ALL_PIP_MODULES: 'n' Linter: @@ -136,14 +137,10 @@ Linter: echo "All YAML files ok." fi - | - declare -a SHELLSCRIPTS=() - for script in $( find * -type f -iname '*.sh' | grep -v 'bin-build/' ) ; do - SHELLSCRIPTS+=( "${script}" ) - done - if [[ "${#SHELLSCRIPTS[*]}" -gt '0' ]]; do + if [[ -n "${SHELLSCRIPTS}" ]] ; then echo - echo "Executing shell check to ${SHELLSCRIPTS[*]} ..." - shellcheck --external-sources --color=always "${SHELLSCRIPTS[@]}" + echo "Executing shell check to ${SHELLSCRIPTS} ..." + shellcheck --external-sources --color=always ${SHELLSCRIPTS} fi