From 9c110cfb0ffd38a03404b146957b917fdbc027bc Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Sat, 19 Oct 2024 21:48:00 +0200 Subject: [PATCH] Update scripts-testing.yml --- .github/workflows/scripts-testing.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/scripts-testing.yml b/.github/workflows/scripts-testing.yml index c1567fac..ec09c971 100644 --- a/.github/workflows/scripts-testing.yml +++ b/.github/workflows/scripts-testing.yml @@ -64,8 +64,8 @@ jobs: if test "${current_os:?}" = 'Linux'; then prepare_shell 'bosh' 'tar.xz' 'http://fuz.su/pub/schilytools/bin/schily-2024-03-21-x86_64-linux-gcc.tar.xz' || exit "${?}" fi - if legacy_bb="$(command -v 'busybox')" && legacy_bb_dir="$(dirname "${legacy_bb:?}")"; then - sudo mv -f "${legacy_bb:?}" "${legacy_bb_dir:?}/busybox-legacy" + if command 1> /dev/null -v 'sudo' && legacy_bb="$(command -v 'busybox')" && legacy_bb_dir="$(dirname "${legacy_bb:?}")"; then + sudo mv -f "${legacy_bb:?}" "${legacy_bb_dir:?}/busybox_legacy" fi - name: "Test scripts" shell: bash @@ -134,7 +134,7 @@ jobs: { local _shell _shell_cmd _status EXECUTED_LIST='' - for _shell in sh dash bash busybox busybox-legacy ash hush mksh ksh93 ksh zsh yash posh osh bosh pbosh obosh; do + for _shell in sh dash bash busybox busybox_legacy ash hush mksh ksh93 ksh zsh yash posh osh bosh pbosh obosh; do if test "${_shell:?}" = 'ksh' && test -n "${ORIGINAL_KSH?}"; then _shell="${ORIGINAL_KSH:?}"; fi if ! _shell_cmd="$(command -v "${_shell:?}")" || skip "${1:?}" "${_shell:?}" || ! not_already_excuted "${_shell_cmd:?}"; then continue; fi printf 'SHELL: %s - SCRIPT: %s\n\n' "${_shell_cmd:?}" "${1:?}"