From 39f33f4cec95da8a4714b851a6c11de883427c0d Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Wed, 17 Jun 2009 10:16:27 -0400 Subject: [PATCH] mkchroot: remove pipe if it still exists.. Signed-off-by: Andres Salomon --- functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/functions.sh b/functions.sh index 8e2b34c..919c766 100644 --- a/functions.sh +++ b/functions.sh @@ -32,6 +32,7 @@ start_logging() { logpipe="$1".pipe trap "rm -f $logpipe" 0 + rm -f $logpipe mknod $logpipe p tee "$1".log <$logpipe & trap "kill $!; rm -f $logpipe" 0 -- 2.39.2