Correct IPSET expansion

This commit is contained in:
Tom Eastep 2009-04-18 10:16:57 -07:00
parent b3943da5c9
commit 94675d7099

View File

@ -349,7 +349,7 @@ sub generate_script_3($) {
' [ -x "$IPSET" ] || fatal_error "IPSET=$IPSET does not exist or is not executable"', ' [ -x "$IPSET" ] || fatal_error "IPSET=$IPSET does not exist or is not executable"',
' ;;', ' ;;',
' *)', ' *)',
' IPSET="$(which ipset)"', ' IPSET="$(which $IPSET)"',
' [ -n "$IPSET" ] || fatal_error "The ipset utility cannot be located"' , ' [ -n "$IPSET" ] || fatal_error "The ipset utility cannot be located"' ,
' ;;', ' ;;',
'esac', 'esac',