From 7a3e3c802aed1cdfe85c2018fe5aa5e8087f73aa Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sat, 13 Apr 2024 22:45:09 +0200 Subject: [PATCH] feat: Add function to show error if OS is not supported --- quickget | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickget b/quickget index cc5b987..fbe7df2 100755 --- a/quickget +++ b/quickget @@ -3443,6 +3443,12 @@ fi LANGS=() +os_not_supported() { + echo -e "ERROR! ${OS} is not a supported OS.\n" + os_support | fold -s -w "$(tput cols)" + exit 1 +} + if [ -n "${1}" ]; then OS="${1,,}" if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then