summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.