From: Christian Walde Date: Sun, 15 Jul 2012 12:42:31 +0000 (+0200) Subject: select the appropiate system null hole X-Git-Tag: v0.001000~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4df609ef4224f485e962d6ea5abbfcba17642b40;p=p5sagit%2FDistar.git select the appropiate system null hole --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 2d02338..70128c4 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -59,8 +59,9 @@ sub run_preflight { system("git fetch"); my $make = $Config{make}; + my $null = $^O ne 'MSWin32' ? "/dev/null" : "NUL"; - for (scalar `"$make" manifest 2>&1 >/dev/null`) { + for (scalar `"$make" manifest 2>&1 >$null`) { $_ && die "$make manifest changed:\n$_ Go check it and retry"; }