mirror of
https://github.com/actions/setup-java
synced 2024-12-22 21:22:41 +00:00
return but shoudl still fail
This commit is contained in:
parent
12896dfb0f
commit
96236d7072
2 changed files with 2 additions and 2 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -4167,7 +4167,7 @@ function write(directory, settings) {
|
||||||
const location = path.join(directory, exports.SETTINGS_FILE);
|
const location = path.join(directory, exports.SETTINGS_FILE);
|
||||||
console.log(`writing ${location} with options ${options}`);
|
console.log(`writing ${location} with options ${options}`);
|
||||||
try {
|
try {
|
||||||
fs.writeFileSync(location, settings, options);
|
return fs.writeFileSync(location, settings, options);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
if (e.code == fs.constants.O_EXCL) {
|
if (e.code == fs.constants.O_EXCL) {
|
||||||
|
|
|
@ -48,7 +48,7 @@ async function write(directory: string, settings: string) {
|
||||||
const location = path.join(directory, SETTINGS_FILE);
|
const location = path.join(directory, SETTINGS_FILE);
|
||||||
console.log(`writing ${location} with options ${options}`);
|
console.log(`writing ${location} with options ${options}`);
|
||||||
try {
|
try {
|
||||||
fs.writeFileSync(location, settings, options);
|
return fs.writeFileSync(location, settings, options);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.code == fs.constants.O_EXCL) {
|
if (e.code == fs.constants.O_EXCL) {
|
||||||
console.log(`overwriting existing file ${location}`);
|
console.log(`overwriting existing file ${location}`);
|
||||||
|
|
Loading…
Reference in a new issue