Skip to content

Commit

Permalink
fix: add -p flag to mkdir to ensure safe directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
charnould committed Dec 4, 2024
1 parent 177d240 commit c7d0054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/knowledge/clean-outdated-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const clean_outdated_data = async (args: Args) => {
// Start spinner
const spinner = ora('Ménage en cours').start()

await $`mkdir ./knowledge/.data/`
await $`mkdir -p ./knowledge/.data/`

if (args['--community'] === true) {
await $`rm -rf ./knowledge/wikipedia`
Expand Down

0 comments on commit c7d0054

Please sign in to comment.