浏览代码

Added a message to differentiate between specified a config and not

Ilija Matoski 11 年之前
父节点
当前提交
217d87f31a
共有 1 个文件被更改,包括 5 次插入1 次删除
  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