]> Frank Brehm's Git Trees - pixelpark/python-packaging.git/commitdiff
Mofifying shellcheks in gitlab/linter.yaml
authorFrank Brehm <frank@brehm-online.com>
Thu, 29 Dec 2022 12:37:03 +0000 (13:37 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 29 Dec 2022 12:37:03 +0000 (13:37 +0100)
gitlab/linter.yaml

index e1b3ab6d7c303372c8bd908887621a773c9b128c..860a873e14d4292eb0514ef2c71618cb253ec41d 100644 (file)
@@ -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