From 217d87f31a87c3ce45af7c2a7d15a14f70b4b403 Mon Sep 17 00:00:00 2001 From: Ilija Matoski Date: Sun, 1 Mar 2015 18:09:36 +0100 Subject: [PATCH] Added a message to differentiate between specified a config and not --- functions/fn_select | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/fn_select b/functions/fn_select index 8a10f7157..4976b0a2f 100644 --- a/functions/fn_select +++ b/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