mirror of
https://github.com/actions/setup-python.git
synced 2025-04-21 22:38:43 +00:00
minor fix
This commit is contained in:
parent
bed7d19f37
commit
45e3aba990
3 changed files with 3 additions and 3 deletions
2
dist/cache-save/index.js
vendored
2
dist/cache-save/index.js
vendored
|
@ -35066,7 +35066,7 @@ class CacheDistributor {
|
|||
const resolvePath = currentValue.includes('~')
|
||||
? path.join(currentValue.slice(1), os.homedir())
|
||||
: currentValue;
|
||||
return previousValue || fs.existsSync(currentValue);
|
||||
return previousValue || fs.existsSync(resolvePath);
|
||||
}, false);
|
||||
return result;
|
||||
}
|
||||
|
|
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -36835,7 +36835,7 @@ class CacheDistributor {
|
|||
const resolvePath = currentValue.includes('~')
|
||||
? path.join(currentValue.slice(1), os.homedir())
|
||||
: currentValue;
|
||||
return previousValue || fs.existsSync(currentValue);
|
||||
return previousValue || fs.existsSync(resolvePath);
|
||||
}, false);
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ abstract class CacheDistributor {
|
|||
const resolvePath = currentValue.includes('~')
|
||||
? path.join(currentValue.slice(1), os.homedir())
|
||||
: currentValue;
|
||||
return previousValue || fs.existsSync(currentValue);
|
||||
return previousValue || fs.existsSync(resolvePath);
|
||||
}, false);
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue