From 5e07ad8caa3ed142e61ea417299c9660e917cf2f Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 4 Sep 2012 14:05:52 -0700 Subject: [PATCH] Allow a directory to be specified with -e. Signed-off-by: Tom Eastep --- Shorewall/lib.cli-std | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index 7ee672e2b..b7300cbe7 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -665,7 +665,7 @@ compile_command() { [ -d $file ] && echo " ERROR: $file is a directory" >&2 && exit 2; ;; 2) - [ -n "$g_shorewalldir" ] && usage 2 + [ -n "$g_shorewalldir" -a -z "$g_export" ] && usage 2 if [ ! -d $1 ]; then if [ -e $1 ]; then @@ -749,7 +749,7 @@ check_command() { 0) ;; 1) - [ -n "$g_shorewalldir" ] && usage 2 + [ -n "$g_shorewalldir" -a -z "$g_export" ] && usage 2 if [ ! -d $1 ]; then if [ -e $1 ]; then