From 724755d762420c2397fc72481128c1db841dcc65 Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 11 Jan 2023 14:02:17 -0500 Subject: [PATCH] Catch input error --- openwrtbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/openwrtbuilder b/openwrtbuilder index 3bcbc9b..583dfc7 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -599,6 +599,7 @@ main() { readInput "$@" + [[ ${#PROFILE} -lt 1 ]] && echo "No profile supplied" && return 1 [[ ! ${!PROFILE@a} = A ]] && echo "Profile does not exist" && return 1 declare -gn P_ARR="$PROFILE"