Selaa lähdekoodia

Catch input error

bryan 2 vuotta sitten
vanhempi
commit
724755d762
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      openwrtbuilder

+ 1 - 0
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"