Don't verify IP and SHOREWALL_SHELL when compiling/checking for test

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-11-14 10:02:15 -08:00
parent f0cb3f50e4
commit f73bad440d
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -211,7 +211,7 @@ get_config() {
LOG_VERBOSITY=-1
fi
if [ -z "$g_export" -a "$(id -u)" = 0 ]; then
if [ -z "${g_export}${g_test}" ]; then
if [ -n "$SHOREWALL_SHELL" -a -z "$g_export" ]; then
if [ ! -x "$SHOREWALL_SHELL" ]; then
echo " WARNING: The program specified in SHOREWALL_SHELL does not exist or is not executable; falling back to /bin/sh" >&2
@ -775,6 +775,10 @@ check_command() {
g_profile=Yes
option=${option#p}
;;
t*)
g_test=Yes
option=${option#t}
;;
d*)
g_debug=Yes;
option=${option#d}
@ -859,6 +863,10 @@ update_command() {
g_profile=Yes
option=${option#p}
;;
t*)
g_test=Yes
option=${option#t}
;;
d*)
g_debug=Yes;
option=${option#d}