mirror of
https://github.com/actions/setup-python.git
synced 2025-04-20 03:53:30 +00:00
minor fix
This commit is contained in:
parent
bed7d19f37
commit
45e3aba990
2
dist/cache-save/index.js
vendored
2
dist/cache-save/index.js
vendored
@ -35066,7 +35066,7 @@ class CacheDistributor {
|
|||||||
const resolvePath = currentValue.includes('~')
|
const resolvePath = currentValue.includes('~')
|
||||||
? path.join(currentValue.slice(1), os.homedir())
|
? path.join(currentValue.slice(1), os.homedir())
|
||||||
: currentValue;
|
: currentValue;
|
||||||
return previousValue || fs.existsSync(currentValue);
|
return previousValue || fs.existsSync(resolvePath);
|
||||||
}, false);
|
}, false);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -36835,7 +36835,7 @@ class CacheDistributor {
|
|||||||
const resolvePath = currentValue.includes('~')
|
const resolvePath = currentValue.includes('~')
|
||||||
? path.join(currentValue.slice(1), os.homedir())
|
? path.join(currentValue.slice(1), os.homedir())
|
||||||
: currentValue;
|
: currentValue;
|
||||||
return previousValue || fs.existsSync(currentValue);
|
return previousValue || fs.existsSync(resolvePath);
|
||||||
}, false);
|
}, false);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ abstract class CacheDistributor {
|
|||||||
const resolvePath = currentValue.includes('~')
|
const resolvePath = currentValue.includes('~')
|
||||||
? path.join(currentValue.slice(1), os.homedir())
|
? path.join(currentValue.slice(1), os.homedir())
|
||||||
: currentValue;
|
: currentValue;
|
||||||
return previousValue || fs.existsSync(currentValue);
|
return previousValue || fs.existsSync(resolvePath);
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user