Simplify fix for -q

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-07-03 08:16:27 -07:00
parent 9dd53cd2fd
commit 299e674324
2 changed files with 3 additions and 13 deletions

View File

@ -3369,7 +3369,7 @@ shorewall_cli() {
g_haveconfig=
g_conditional=
g_file=
g_doing=
g_doing="Compiling"
VERBOSE=
VERBOSITY=1

View File

@ -373,7 +373,7 @@ compiler() {
#
get_config Yes
progress_message3 "$g_doing..."
[ -n "$g_doing" ] && progress_message3 "$g_doing..."
case $COMMAND in
*start|try|refresh)
@ -473,8 +473,6 @@ start_command() {
rc=$?
[ -n "$nolock" ] || mutex_off
else
g_doing="Compiling"
if compiler $g_debugging $nolock compile ${VARDIR}/.start; then
run_postcompile ${VARDIR}/.start
[ -n "$nolock" ] || mutex_on
@ -689,7 +687,7 @@ compile_command() {
;;
esac
[ "x$g_file" = x- ] || g_doing="Compiling"
[ "x$g_file" = x- ] && g_doing=''
compiler $g_debugging compile $g_file && run_postcompile $g_file
}
@ -955,8 +953,6 @@ restart_command() {
fi
if [ -z "$g_fast" ]; then
g_doing="Compiling"
if compiler $g_debugging $nolock compile ${VARDIR}/.restart; then
run_postcompile ${VARDIR}/.restart
[ -n "$nolock" ] || mutex_on
@ -1047,8 +1043,6 @@ refresh_command() {
[ -n "$STARTUP_ENABLED" ] || fatal_error "Startup is disabled"
g_doing="Compiling"
if compiler $g_debugging $nolock compile ${VARDIR}/.refresh; then
run_postcompile ${VARDIR}/.refresh
[ -n "$nolock" ] || mutex_on
@ -1158,8 +1152,6 @@ safe_commands() {
command="restart"
fi
g_doing="Compiling"
if ! compiler $g_debugging nolock compile ${VARDIR}/.$command; then
status=$?
exit $status
@ -1291,8 +1283,6 @@ try_command() {
command="restart"
fi
g_doing="Compiling"
if ! compiler $g_debugging $nolock compile ${VARDIR}/.$command; then
status=$?
exit $status