fix: correctly match editions (#1585)

Closes #1583
This commit is contained in:
Phil Clifford 2025-02-10 00:53:45 +00:00 committed by GitHub
parent b60ff761e7
commit 3da9edc995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3602,7 +3602,7 @@ if [ -n "${2}" ]; then
EDITIONS=("$(editions_"${OS}")")
if [ -n "${3}" ]; then
EDITION="${3}"
if [[ ! " ${EDITIONS[*]} " = \ "${EDITION}"\ ]]; then
if [[ ! " ${EDITIONS[*]} " =~ \ "${EDITION}"\ ]]; then
echo -e "ERROR! ${EDITION} is not a supported $(pretty_name "${OS}") edition\n"
echo -n ' - Supported editions: '
for EDITION in "${EDITIONS[@]}"; do