feat: Move must specify edition message into function
This commit is contained in:
parent
bea27b1ffa
commit
ae7b47f7f9
11
quickget
11
quickget
|
@ -3443,6 +3443,13 @@ fi
|
||||||
|
|
||||||
LANGS=()
|
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
|
if [ -n "${1}" ]; then
|
||||||
OS="${1,,}"
|
OS="${1,,}"
|
||||||
if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
|
if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
|
||||||
|
@ -3496,9 +3503,7 @@ if [ -n "${2}" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -en "ERROR! You must specify an edition.\n - Editions: "
|
os_error_edition
|
||||||
editions_"${OS}"
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Handle odd missing fedora cominations
|
# Handle odd missing fedora cominations
|
||||||
|
|
Loading…
Reference in New Issue