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