зеркало из https://github.com/mozilla/gecko-dev.git
'mount -p' can return multiple mount points. Use the first one.
Bug #158920 r=sspitzer
This commit is contained in:
Родитель
79013e7a94
Коммит
215fce2c37
|
@ -7,7 +7,7 @@ shift
|
|||
if test -z "$prog"; then
|
||||
exit 0
|
||||
fi
|
||||
mountpoint=`mount -p | grep ^/ | awk '{ print $1 }'`
|
||||
mountpoint=`mount -p | awk '{ if (/^\//) print $1 }' | head -1`
|
||||
if test -z "$mountpoint"; then
|
||||
print "Cannot determine cygwin mount points. Exiting"
|
||||
exit 1
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
my $cygwin_mountprefix = "";
|
||||
if ($^O eq "cygwin") {
|
||||
$cygwin_mountprefix = `mount -p | grep ^/ | awk '{print $1}'`;
|
||||
$cygwin_mountprefix = `mount -p | awk '{ if (/^\//) print $1}' | head -1`;
|
||||
} else {
|
||||
# we'll be pulling in some stuff from the script directory
|
||||
require FindBin;
|
||||
|
|
Загрузка…
Ссылка в новой задаче