]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Disconnect standard input from make commands
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Jul 2024 10:25:27 +0000 (10:25 +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 acf99bc3ea560efa1442f354bb4acdc7d780cce1..bbd21b91d4bc789765e5a3aa3db87da1338e89e5 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -787,7 +787,7 @@ run_command() {
        local t="${SECONDS}"
 
        # Run the command and pipe all output to the logfile
-       if ! "${command[@]}" >> "${LOGFILE}" 2>&1; then
+       if ! "${command[@]}" >> "${LOGFILE}" 2>&1 </dev/null; then
                r="$?"
        fi