Catch input error

This commit is contained in:
2023-01-11 14:02:17 -05:00
parent 6856791364
commit 724755d762

View File

@@ -599,6 +599,7 @@ main() {
readInput "$@" readInput "$@"
[[ ${#PROFILE} -lt 1 ]] && echo "No profile supplied" && return 1
[[ ! ${!PROFILE@a} = A ]] && echo "Profile does not exist" && return 1 [[ ! ${!PROFILE@a} = A ]] && echo "Profile does not exist" && return 1
declare -gn P_ARR="$PROFILE" declare -gn P_ARR="$PROFILE"