]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Launch the timer only when we need it
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Jul 2024 14:02:12 +0000 (14:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jul 2024 15:39:44 +0000 (15:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index c08ebe6c59cdb8c406838c8ffcad654de49a2a66..f33bf921191dd20e03f01b5b38185049fd953866 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -826,15 +826,15 @@ run_command() {
        # Return code
        local r=0
 
-       # Launch the timer
-       launch_timer
-
        # Store the start time
        local t="${SECONDS}"
 
        # If we are not running in quiet mode, we set the timer
        case "${quiet}" in
                false)
+                       # Launch the timer
+                       launch_timer
+
                        TIMER="${t}"
                        ;;
        esac