summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn M. Schanck <jschanck@mozilla.com>2023-05-09 21:30:02 +0000
committerJohn M. Schanck <jschanck@mozilla.com>2023-05-09 21:30:02 +0000
commit95ae9a34c1b69467827ce28451fc9564c14b96f2 (patch)
treec02bd74a83ab6bcad955d472ea4516d41d4e9d1e
parent8ead6192b93f13e356f1a651022d98a88bf84bb7 (diff)
downloadnss-hg-95ae9a34c1b69467827ce28451fc9564c14b96f2.tar.gz
Bug 1830973 - output early build errors by default. r=nkulatova
Differential Revision: https://phabricator.services.mozilla.com/D176951
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index bbb8d04a4..ae8eeee8b 100755
--- a/build.sh
+++ b/build.sh
@@ -30,11 +30,11 @@ run_verbose()
if [ "$verbose" = 1 ]; then
echo "$@"
exec 3>&1
+ "$@" 1>&3 2>&3
+ exec 3>&-
else
- exec 3>/dev/null
+ "$@" >/dev/null
fi
- "$@" 1>&3 2>&3
- exec 3>&-
}
# The prehistoric bash on Mac doesn't support @Q quoting.