mirror of
https://github.com/actions/setup-python.git
synced 2025-07-03 08:03:48 +00:00
fix path
This commit is contained in:
parent
45e3aba990
commit
e8afe8a475
4 changed files with 22 additions and 11 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -36833,7 +36833,7 @@ class CacheDistributor {
|
|||
isCacheDirectoryExists(cacheDirectory) {
|
||||
const result = cacheDirectory.reduce((previousValue, currentValue) => {
|
||||
const resolvePath = currentValue.includes('~')
|
||||
? path.join(currentValue.slice(1), os.homedir())
|
||||
? path.join(os.homedir(), currentValue.slice(1))
|
||||
: currentValue;
|
||||
return previousValue || fs.existsSync(resolvePath);
|
||||
}, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue