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:
teastep 2007-05-04 15:58:26 +00:00
parent 55f48d634c
commit aa1e2de59f

View File

@ -515,6 +515,7 @@ compile_command() {
case $# in
1)
file=$1
[ -d $file ] && echo " ERROR: $file is a directory" >&2 && exit 2;
;;
2)
[ -n "$SHOREWALL_DIR" ] && usage 2