fix: validate os in list_check_all() and list_url_all()

This commit is contained in:
Martin Wimpress 2024-04-28 11:07:17 +01:00 committed by Martin Wimpress
parent 443ac72e2f
commit 0ff9238d85
1 changed files with 6 additions and 2 deletions

View File

@ -394,9 +394,11 @@ function list_supported() {
}
function list_url_all() {
OS="${1}"
os_supported
local CHECK=""
local OPTION=""
local OS="${1}"
local FUNC="${OS}"
if [[ "${OS}" == *ubuntu* && "${OS}" != "ubuntu-server" ]]; then
FUNC="ubuntu"
@ -435,9 +437,11 @@ function list_url_all() {
}
function list_check_all() {
OS="${1}"
os_supported
local CHECK=""
local OPTION=""
local OS="${1}"
local FUNC="${OS}"
if [[ "${OS}" == *ubuntu* && "${OS}" != "ubuntu-server" ]]; then
FUNC="ubuntu"