diff --git a/tools/arkmanager b/tools/arkmanager index afb13ac..ba52c1e 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -1646,8 +1646,12 @@ useConfig() { break fi done - if [ -a "$configfile" ]; then - echo "Error: config file ${configfile} does not exist" + if [ -z "$configfile" ]; then + echo "Error: no config files for instance $1" + exit 1 + fi + if [ ! -f "$configfile" ]; then + echo "Error: config file $configfile does not exist" exit 1 fi source "$configfile"