versions() fix pip, pip3

This commit is contained in:
Sebastian Hildebrandt
2019-07-20 12:13:18 +02:00
parent 14b06043c3
commit 4482dff2a4
4 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -574,7 +574,7 @@ function versions(callback) {
if (!error) {
const pip = stdout.toString().split('\n')[0] || '';
const parts = pip.split(' ');
result.pip = parts.length >= 2 ? parts[2] : '';
result.pip = parts.length >= 2 ? parts[1] : '';
}
functionProcessed();
});
@@ -582,7 +582,7 @@ function versions(callback) {
if (!error) {
const pip = stdout.toString().split('\n')[0] || '';
const parts = pip.split(' ');
result.pip3 = parts.length >= 2 ? parts[2] : '';
result.pip3 = parts.length >= 2 ? parts[1] : '';
}
functionProcessed();
});