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;