From: Andres Salomon Date: Wed, 17 Jun 2009 14:16:27 +0000 (-0400) Subject: mkchroot: remove pipe if it still exists.. X-Git-Tag: v0.6~40 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39f33f4cec95da8a4714b851a6c11de883427c0d;p=xodist mkchroot: remove pipe if it still exists.. Signed-off-by: Andres Salomon --- 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