Apply Tuomo's fix for CLI run with no command

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-02-06 10:25:20 -08:00
parent fa7ad6bd74
commit 4c97c58981
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -4399,7 +4399,10 @@ shorewall_cli() {
finished=0
while [ $finished -eq 0 ]; do
[ $# -eq 0 ] && usage 1
if [ $# -eq 0 ]; then
setup_product_environment 1
usage 1
fi
option=$1
case $option in
-)
@ -4529,10 +4532,6 @@ shorewall_cli() {
esac
done
if [ $# -eq 0 ]; then
usage 1
fi
setup_product_environment 1
[ -n "$g_lite" ] || . ${SHAREDIR}/shorewall/lib.cli-std