init: Don't set the 'file' var needlessly

Signed-off-by: Matt Darfeuille <matdarf@gmail.com>
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Matt Darfeuille 2016-12-19 08:51:30 +01:00 committed by Tom Eastep
parent 3caedbbbef
commit 44e9c7780f
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -164,10 +164,8 @@ if [ $# -eq 0 ]; then
#
if [ -f ./shorewallrc ]; then
. ./shorewallrc || exit 1
file=./shorewallrc
elif [ -f ~/.shorewallrc ]; then
. ~/.shorewallrc || exit 1
file=~/.shorewallrc
else
fatal_error "No configuration file specified and ~/.shorewallrc not found"
fi