mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-21 23:23:13 +01:00
Simplify fix for -q
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
9dd53cd2fd
commit
299e674324
@ -3369,7 +3369,7 @@ shorewall_cli() {
|
||||
g_haveconfig=
|
||||
g_conditional=
|
||||
g_file=
|
||||
g_doing=
|
||||
g_doing="Compiling"
|
||||
|
||||
VERBOSE=
|
||||
VERBOSITY=1
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user