Skip to content

Commit

Permalink
fix(log): csv usage of fs.mkdir instead of action breaking with sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Jun 12, 2024
1 parent c966f5e commit 098075d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/log/lib/csv/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
const walk = function(parent) {
const precious = parent.metadata.header;
const results = [];
if (precious !== void 0) {
if (precious !== undefined) {
results.push(precious);
}
if (parent.parent) {
Expand Down
6 changes: 2 additions & 4 deletions packages/log/lib/fs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ export default {
logdir = path.resolve(config.basedir, config.archive);
}
try {
await this.fs.base.mkdir(logdir, {
$ssh: false
});
await fs.promises.mkdir(logdir, {recursive: true});
} catch (error) {
if (error.code !== 'NIKITA_FS_MKDIR_TARGET_EEXIST') {
if (error.code !== 'EEXIST') {
throw error;
}
}
Expand Down

0 comments on commit 098075d

Please sign in to comment.