mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-21 10:18:58 +02:00
Early catch for 'compile .'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6234 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
55f48d634c
commit
aa1e2de59f
@ -515,6 +515,7 @@ compile_command() {
|
|||||||
case $# in
|
case $# in
|
||||||
1)
|
1)
|
||||||
file=$1
|
file=$1
|
||||||
|
[ -d $file ] && echo " ERROR: $file is a directory" >&2 && exit 2;
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
[ -n "$SHOREWALL_DIR" ] && usage 2
|
[ -n "$SHOREWALL_DIR" ] && usage 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user