shuffle things to allow for no-color fix to apply correctly

This commit is contained in:
Kjeld Schouten-Lebbing 2022-06-15 00:16:49 +02:00
parent d5eb5ac16e
commit 4fa845679e
No known key found for this signature in database
GPG Key ID: 3D586240A9175B99

View File

@ -33,13 +33,9 @@ source includes/update.sh
# shellcheck source=includes/update_self.sh # shellcheck source=includes/update_self.sh
source includes/update_self.sh source includes/update_self.sh
title #If no argument is passed, set flag to show menu
[[ "$enableUpdate" == "true" ]] && updater "$@"
#If no argument is passed, kill the script.
if [[ -z "$*" || "-" == "$*" || "--" == "$*" ]]; then if [[ -z "$*" || "-" == "$*" || "--" == "$*" ]]; then
no_args no_args="true"
else else
# Parse script options # Parse script options
@ -126,6 +122,15 @@ else
done done
fi fi
title
[[ "$enableUpdate" == "true" ]] && updater "$@"
#If no argument is passed, set flag to show menu
if [[ "$no_args" == "true" ]]; then
no_args
fi
## Exit if incompatable functions are called ## Exit if incompatable functions are called
[[ "$update_all_apps" == "true" && "$update_apps" == "true" ]] && echo -e "-U and -u cannot BOTH be called" && exit [[ "$update_all_apps" == "true" && "$update_apps" == "true" ]] && echo -e "-U and -u cannot BOTH be called" && exit