From 8922a9e67cab3761cd61c06666be2e63f3cd9b54 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sun, 3 Jun 2012 12:58:51 -0500 Subject: [PATCH] script/makeworld: only restore stdout if it was redirected --- script/makeworld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/makeworld b/script/makeworld index d08c360..fb882eb 100755 --- a/script/makeworld +++ b/script/makeworld @@ -72,7 +72,7 @@ prepare() { # Cleanup chroot cleanup() { - [ "${BUILD_VERBOSE}" ] || exec 1>&3 + [ -c /dev/fd/3 ] && exec 1>&3 [ "${CHROOT_DIRTY}" -a ! "${CHROOT_CLEAN}" ] && return 0 meh "Cleaning up" umount -f "${build}/mnt" -- 2.45.0