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 12, 2024
1 parent cf09c0d commit 198b59b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/scripts-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,15 @@ jobs:
*) ;;
esac
fi
_s_shell="$(basename "${3:?}")" || _s_shell="${3?}"
test "${_s_shell?}" != 'sh' || _s_shell="${2:?}" # Needed for bosh
if test "${2?}" = 'osh' || test "${2?}" = 'bosh'; then
_s_shell="${2?}"
else
_s_shell="$(basename "${3:?}")" || _s_shell="${3?}"
fi
echo "_${_s_shell?}_"
if test "${1:?}" = 'cmdline.sh'; then
case "${_s_shell?}" in
dash | busybox | mksh | zsh | bosh | pbosh | yash | posh) return 0 ;; # Skip
sh | dash | busybox | mksh | zsh | bosh | pbosh | yash | posh) return 0 ;; # Skip
*) ;;
esac
fi
Expand Down

0 comments on commit 198b59b

Please sign in to comment.