From 34ac2554aaa96026c8b18643b1a45a596f60e3bf Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Sun, 20 Oct 2024 23:27:45 +0200 Subject: [PATCH] Minor changes --- .github/workflows/scripts-testing.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/scripts-testing.yml b/.github/workflows/scripts-testing.yml index fd378598..f546891a 100644 --- a/.github/workflows/scripts-testing.yml +++ b/.github/workflows/scripts-testing.yml @@ -170,11 +170,25 @@ jobs: printf '\nRETURN CODE:%s\n\n' "${_status:?}" done } - export ONLY_FOR_TESTING='true' - for _script in 'tools/bits-info.sh' 'cmdline.sh'; do - test_on_all_shells "${_script:?}" - printf '%s\n' "---" - done + list_scripts() + { + printf '%s\n' 'tools/bits-info.sh' + printf '%s\n' 'cmdline.sh' + } + main() + { + local backup_ifs _script + export ONLY_FOR_TESTING='true' + backup_ifs="${IFS-}" + IFS=$'\n' + set -- $(list_scripts) || exit "${?}" + IFS="${backup_ifs}" + for _script in "${@}"; do + test_on_all_shells "${_script:?}" + printf '%s\n' "---" + done + } + main exit "${EXIT_CODE:?}" - name: "Clean extracted files" if: "always()"