versions() fix pip, pip3
This commit is contained in:
+2
-2
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user