- return correct exit code when environment is not correctly set up

This commit is contained in:
Babak Farrokhi 2015-08-24 19:32:13 +04:30
parent d30f90b1ed
commit 44a8fc38a5

View File

@ -84,12 +84,12 @@ elif [ "$1" == "autoconf" ]; then
if [ x${hosts} == x ]; then
echo "no (env.hosts is not defined)"
exit 1
exit 0
fi
if [ x${interface} == x ]; then
echo "no (env.interface is not defined)"
exit 1
exit 0
fi
### check env vars and return no if not set properly