feat: os_error function

This commit is contained in:
Martin Wimpress 2024-04-16 14:04:18 +01:00
commit 29167d8528
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 8 additions and 0 deletions

View File

@ -3662,6 +3662,14 @@ fi
LANGS=() LANGS=()
os_error() {
echo "ERROR! You must specify an operating system."
echo "- Supported Operating Systems:"
os_support | fold -s -w "$(tput cols)"
echo -e "\nTo see all possible arguments, use:\n quickget -h or quickget --help"
exit 1
}
os_not_supported() { os_not_supported() {
echo -e "ERROR! ${OS} is not a supported OS.\n" echo -e "ERROR! ${OS} is not a supported OS.\n"
os_support | fold -s -w "$(tput cols)" os_support | fold -s -w "$(tput cols)"