feat: Add function to show error if OS is not supported

This commit is contained in:
zen0bit 2024-04-13 22:45:09 +02:00
parent bea27b1ffa
commit 7a3e3c802a
1 changed files with 6 additions and 0 deletions

View File

@ -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