mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 10:58:28 +00:00
Fix logic error in configfile test
This commit is contained in:
parent
3b2f1e7a30
commit
fdc7bffb6b
@ -1647,7 +1647,11 @@ useConfig() {
|
||||
fi
|
||||
done
|
||||
if [ -z "$configfile" ]; then
|
||||
echo "Error: config file ${configfile} does not exist"
|
||||
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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user