From 0c8ca9d1e0ea4e8d78e7f2e82731a95b18f1ff63 Mon Sep 17 00:00:00 2001 From: "seawood%netscape.com" Date: Wed, 2 Apr 2003 23:22:41 +0000 Subject: [PATCH] Third time's a charge. Thanks to danm@netscape.com for the patch. Bug #158920 git-svn-id: svn://10.0.0.236/trunk@140607 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/build/cygwin-wrapper | 2 +- mozilla/config/make-jars.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/build/cygwin-wrapper b/mozilla/build/cygwin-wrapper index e716c0dce12..3da3c508d74 100755 --- a/mozilla/build/cygwin-wrapper +++ b/mozilla/build/cygwin-wrapper @@ -7,7 +7,7 @@ shift if test -z "$prog"; then exit 0 fi -mountpoint=`mount -p | awk '{ if (/^\//) print $1 }' | head -1` +mountpoint=`mount -p | awk '{ if (/^\//) { print $1; exit } }'` if test -z "$mountpoint"; then print "Cannot determine cygwin mount points. Exiting" exit 1 diff --git a/mozilla/config/make-jars.pl b/mozilla/config/make-jars.pl index 6a164215ef3..8b536941b4f 100644 --- a/mozilla/config/make-jars.pl +++ b/mozilla/config/make-jars.pl @@ -4,7 +4,7 @@ my $cygwin_mountprefix = ""; if ($^O eq "cygwin") { -$cygwin_mountprefix = `mount -p | awk '{ if (/^\//) print $1}' | head -1`; +$cygwin_mountprefix = `mount -p | awk '{ if (/^\//) { print $1; exit } }'`; } else { # we'll be pulling in some stuff from the script directory require FindBin;