Explorar o código

Added a message to differentiate between specified a config and not

Ilija Matoski %!s(int64=11) %!d(string=hai) anos
pai
achega
217d87f31a
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      functions/fn_select

+ 5 - 1
functions/fn_select

@@ -51,7 +51,11 @@ if [ $usesrvcfg -eq 1 ]; then
 
     # it's invalid cfg setting
     if [ $invalidcfg -eq 1 ]; then
-      fn_printwarn "$getsrvcfg configuration file doesn't exist, use one of the available ones ($appendextra)\n"
+      if [ -z "$getsrvcfg" ]; then
+        fn_printwarn "configuration file not specified, use one of the available ones ($appendextra)\n"
+      else
+        fn_printwarn "$getsrvcfg configuration file does not exist, use one of the available ones ($appendextra)\n"
+      fi
       getopt=
       fn_getopt
     else