Not work for me

This commit is contained in:
zenobit 2025-02-14 06:17:47 +01:00
parent 1b42e8a6de
commit 47f9cf5970
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ function error_specify_os() {
}
function os_supported() {
if [[ ! " $(os_support) " =~ \ "${OS}"\ ]]; then
if [[ ! "$(os_support)" =~ ${OS} ]]; then
echo -e "ERROR! ${OS} is not a supported OS.\n"
os_support | fmt -w 80
exit 1
@ -59,7 +59,7 @@ function error_specify_release() {
}
function error_not_supported_release() {
if [[ ! " ${RELEASES[*]} " =~ \ "${RELEASE}"\ ]]; then
if [[ ! "${RELEASES[*]}" =~ ${RELEASE} ]]; then
echo -e "ERROR! ${DISPLAY_NAME} ${RELEASE} is not a supported release.\n"
echo -n ' - Supported releases: '
releases_