diff --git a/Shorewall-common/shorewall b/Shorewall-common/shorewall index f0cd1cbfd..49dcbd87a 100755 --- a/Shorewall-common/shorewall +++ b/Shorewall-common/shorewall @@ -284,7 +284,7 @@ compiler() { perl) [ -x $pc ] || startup_error "SHOREWALL_COMPILER=perl requires the shorewall-perl package which is not installed" debugflags="-w" - [ "$1" = debug ] && debugflags='-wd' && shift + [ -n "$DEBUG" ] && debugflags='-wd' && shift [ -n "$PROFILE" ] && debugflags='-wd:DProf' shift # Perl compiler only takes the output file as a argument