From 8e2e1b7b551f2eb0a04674d6eb0a74f4db2baf98 Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Mon, 21 Oct 2024 02:58:35 +0200 Subject: [PATCH] Minor change --- .github/workflows/scripts-testing.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/scripts-testing.yml b/.github/workflows/scripts-testing.yml index f546891a..3fc84a7b 100644 --- a/.github/workflows/scripts-testing.yml +++ b/.github/workflows/scripts-testing.yml @@ -162,9 +162,9 @@ jobs: printf 'SHELL: %s - SCRIPT: %s\n\n' "${_shell_cmd:?}" "${1:?}" _status='0' if test "${_shell:?}" = 'busybox' || test "${_shell:?}" = 'busybox-legacy'; then - "${_shell_cmd:?}" ash "${workspace_dir:?}/${1:?}" || _status="${?}" + "${_shell_cmd:?}" ash "${workspace_dir:?}/${1:?}" ${2-} || _status="${?}" else - "${_shell_cmd:?}" "${workspace_dir:?}/${1:?}" || _status="${?}" + "${_shell_cmd:?}" "${workspace_dir:?}/${1:?}" ${2-} || _status="${?}" fi test "${_status:?}" = 0 || EXIT_CODE="${_status:?}" printf '\nRETURN CODE:%s\n\n' "${_status:?}" @@ -172,7 +172,7 @@ jobs: } list_scripts() { - printf '%s\n' 'tools/bits-info.sh' + printf '%s|%s\n' 'tools/bits-info.sh' '-i' printf '%s\n' 'cmdline.sh' } main() @@ -184,7 +184,7 @@ jobs: set -- $(list_scripts) || exit "${?}" IFS="${backup_ifs}" for _script in "${@}"; do - test_on_all_shells "${_script:?}" + test_on_all_shells "$(printf '%s\n' "${_script:?}" | cut -d '|' -f '1' || :)" "$(printf '%s\n' "${_script:?}" | cut -d '|' -f '2-' -s || :)" printf '%s\n' "---" done }