feat: Add function to show error if OS is not supported
This commit is contained in:
parent
bea27b1ffa
commit
7a3e3c802a
6
quickget
6
quickget
|
@ -3443,6 +3443,12 @@ fi
|
||||||
|
|
||||||
LANGS=()
|
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
|
if [ -n "${1}" ]; then
|
||||||
OS="${1,,}"
|
OS="${1,,}"
|
||||||
if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
|
if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
|
||||||
|
|
Loading…
Reference in New Issue