Skip to content

Commit

Permalink
feat: Create os_error_edition function
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Apr 16, 2024
1 parent bea27b1 commit b85e603
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -3443,6 +3443,13 @@ fi

LANGS=()

os_error_edition() {
echo -en "ERROR! You must specify an edition.\n - Editions: "
#TODO ERROR here
"editions_${OS}"
exit 1
}

if [ -n "${1}" ]; then
OS="${1,,}"
if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
Expand Down Expand Up @@ -3496,9 +3503,7 @@ if [ -n "${2}" ]; then
exit 1
fi
else
echo -en "ERROR! You must specify an edition.\n - Editions: "
editions_"${OS}"
exit 1
os_error_edition
fi

# Handle odd missing fedora cominations
Expand Down

0 comments on commit b85e603

Please sign in to comment.