forked from extern/shorewall_code
Apply Tuomo's fix for CLI run with no command
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
fa7ad6bd74
commit
4c97c58981
@ -4399,7 +4399,10 @@ shorewall_cli() {
|
|||||||
finished=0
|
finished=0
|
||||||
|
|
||||||
while [ $finished -eq 0 ]; do
|
while [ $finished -eq 0 ]; do
|
||||||
[ $# -eq 0 ] && usage 1
|
if [ $# -eq 0 ]; then
|
||||||
|
setup_product_environment 1
|
||||||
|
usage 1
|
||||||
|
fi
|
||||||
option=$1
|
option=$1
|
||||||
case $option in
|
case $option in
|
||||||
-)
|
-)
|
||||||
@ -4529,10 +4532,6 @@ shorewall_cli() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
usage 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
setup_product_environment 1
|
setup_product_environment 1
|
||||||
|
|
||||||
[ -n "$g_lite" ] || . ${SHAREDIR}/shorewall/lib.cli-std
|
[ -n "$g_lite" ] || . ${SHAREDIR}/shorewall/lib.cli-std
|
||||||
|
Loading…
Reference in New Issue
Block a user