summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-08-24 21:47:05 +0000
committerKarl Berry <karl@freefriends.org>2013-08-24 21:47:05 +0000
commit7296f99c246a5b1e923c7207fbe7f637685cc67e (patch)
tree46b51125d4c5a3d87697916eb5a239929f836199
parent780acd30439ee3365896212f837df84d1b53ff89 (diff)
(platform_name) <darwin>: don't assume sysctl is
in /usr/sbin. git-svn-id: svn://tug.org/texlive/trunk@31511 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/tlpkg/TeXLive/TLUtils.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm
index 15f229971d6..f2aaf44c95e 100644
--- a/Master/tlpkg/TeXLive/TLUtils.pm
+++ b/Master/tlpkg/TeXLive/TLUtils.pm
@@ -299,7 +299,7 @@ sub platform_name {
chomp (my $sw_vers = `sw_vers -productVersion`);
my ($os_major,$os_minor) = split (/\./, $sw_vers);
#
- chomp (my $sysctl = `/usr/sbin/sysctl hw.cpu64bit_capable`);
+ chomp (my $sysctl = `PATH=/usr/sbin:\$PATH sysctl hw.cpu64bit_capable`);
my (undef,$hw_64_bit) = split (" ", $sysctl);
#
$CPU = ($os_major >= 10 && $os_minor >= 6 && $hw_64_bit >= 1)