From 05114137840a24662caee2fdf86884b966eefce8 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 18 Nov 2021 20:19:53 +0100 Subject: [PATCH] versions() python 2 monterey (deprecated warning) fix (mac OS) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/osinfo.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 397c638..f48a381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.9.14 | 2021-11-17 | `versions()` python 2 monterey (deprecated warning) fix (mac OS) | | 5.9.13 | 2021-11-14 | `time()` timezone name, `l1 cache` improvements | | 5.9.12 | 2021-11-13 | `users()` fix data check (windows) | | 5.9.11 | 2021-11-12 | `fsStats()` fix null result (bsd) | diff --git a/docs/history.html b/docs/history.html index 055043c..a237eb3 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.9.14 + 2021-11-17 + versions() python 2 monterey (deprecated warning) fix (mac OS) + 5.9.13 2021-11-14 diff --git a/docs/index.html b/docs/index.html index 3b9ac8b..9e0d42e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.9.13
+
New Version: 5.9.14
diff --git a/lib/osinfo.js b/lib/osinfo.js index 17757cb..0700429 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -786,7 +786,7 @@ function versions(apps, callback) { const gitHomebrewExists1 = fs.existsSync('/usr/local/Cellar/python'); const gitHomebrewExists2 = fs.existsSync('/opt/homebrew/bin/python'); if ((util.darwinXcodeExists() && util.semverCompare('12.0.1', osVersion) < 0) || gitHomebrewExists1 || gitHomebrewExists2) { - const cmd = gitHomebrewExists1 ? '/usr/local/Cellar/python -V 2>&1' : (gitHomebrewExists2 ? '/opt/homebrew/bin/python -V 2>&1' : 'python -V 2>&1') + const cmd = gitHomebrewExists1 ? '/usr/local/Cellar/python -V 2>&1' : (gitHomebrewExists2 ? '/opt/homebrew/bin/python -V 2>&1' : 'python -V 2>&1'); exec(cmd, function (error, stdout) { if (!error) { const python = stdout.toString().split('\n')[0] || '';