Ver Fonte

Catch input error

bryan há 2 anos atrás
pai
commit
724755d762
1 ficheiros alterados com 1 adições e 0 exclusões
  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"