Skip to content

Commit

Permalink
Update scripts-testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git authored Oct 21, 2024
1 parent 3c62eda commit c0f253d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/scripts-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,17 @@ 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:?}"
done
}
list_scripts()
{
printf '%s\n' 'tools/bits-info.sh'
printf '%s|%s\n' 'tools/bits-info.sh' '-i'
printf '%s\n' 'cmdline.sh'
}
main()
Expand All @@ -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
}
Expand Down

0 comments on commit c0f253d

Please sign in to comment.