script: Refactor variable use in verifyPython()

This commit is contained in:
DeeDeeG
2020-06-17 16:43:38 -04:00
parent dc44ad2d16
commit f8fecadcbb

View File

@@ -69,6 +69,8 @@ function verifyPython() {
function verifyBinary(binary, prependFlag) {
if (binary && !usablePythonWasFound) {
// clear re-used "result" variables now that we're checking another python binary.
stdout = '';
fullVersion = '';
let allFlags = [
@@ -108,8 +110,6 @@ function verifyPython() {
(majorVersion === 3 && minorVersion >= 5)
) {
usablePythonWasFound = true;
} else {
stdout = '';
}
}