mirror of
https://gitlab.com/shorewall/code.git
synced 2025-05-31 15:05:39 +02:00
Allow a directory to be specified with -e.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6aaf06c2e8
commit
5e07ad8caa
@ -665,7 +665,7 @@ compile_command() {
|
|||||||
[ -d $file ] && echo " ERROR: $file is a directory" >&2 && exit 2;
|
[ -d $file ] && echo " ERROR: $file is a directory" >&2 && exit 2;
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
[ -n "$g_shorewalldir" ] && usage 2
|
[ -n "$g_shorewalldir" -a -z "$g_export" ] && usage 2
|
||||||
|
|
||||||
if [ ! -d $1 ]; then
|
if [ ! -d $1 ]; then
|
||||||
if [ -e $1 ]; then
|
if [ -e $1 ]; then
|
||||||
@ -749,7 +749,7 @@ check_command() {
|
|||||||
0)
|
0)
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
[ -n "$g_shorewalldir" ] && usage 2
|
[ -n "$g_shorewalldir" -a -z "$g_export" ] && usage 2
|
||||||
|
|
||||||
if [ ! -d $1 ]; then
|
if [ ! -d $1 ]; then
|
||||||
if [ -e $1 ]; then
|
if [ -e $1 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user