Always use force: true for del
This commit is contained in:
parent
924a64d2e0
commit
67d11b5928
3 changed files with 3 additions and 3 deletions
2
lib/util.js
generated
2
lib/util.js
generated
|
|
@ -496,7 +496,7 @@ async function bundleDb(config, language, codeql) {
|
||||||
// from somewhere else or someone trying to make the action upload a
|
// from somewhere else or someone trying to make the action upload a
|
||||||
// non-database file.
|
// non-database file.
|
||||||
if (fs.existsSync(databaseBundlePath)) {
|
if (fs.existsSync(databaseBundlePath)) {
|
||||||
await (0, del_1.default)(databaseBundlePath);
|
await (0, del_1.default)(databaseBundlePath, { force: true });
|
||||||
}
|
}
|
||||||
await codeql.databaseBundle(databasePath, databaseBundlePath);
|
await codeql.databaseBundle(databasePath, databaseBundlePath);
|
||||||
return databaseBundlePath;
|
return databaseBundlePath;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -566,7 +566,7 @@ export async function bundleDb(
|
||||||
// from somewhere else or someone trying to make the action upload a
|
// from somewhere else or someone trying to make the action upload a
|
||||||
// non-database file.
|
// non-database file.
|
||||||
if (fs.existsSync(databaseBundlePath)) {
|
if (fs.existsSync(databaseBundlePath)) {
|
||||||
await del(databaseBundlePath);
|
await del(databaseBundlePath, { force: true });
|
||||||
}
|
}
|
||||||
await codeql.databaseBundle(databasePath, databaseBundlePath);
|
await codeql.databaseBundle(databasePath, databaseBundlePath);
|
||||||
return databaseBundlePath;
|
return databaseBundlePath;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue