From 0ff9238d858c6b4c503784265a33f315e0ee3b2b Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 28 Apr 2024 11:07:17 +0100 Subject: [PATCH] fix: validate os in list_check_all() and list_url_all() --- quickget | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index f302466..29bf90c 100755 --- a/quickget +++ b/quickget @@ -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"