Skip to content

Commit

Permalink
recursively create plugin dir
Browse files Browse the repository at this point in the history
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
  • Loading branch information
eternal-flame-AD committed Sep 20, 2024
1 parent dc3978d commit ef523c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/tests/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const testPluginDir = (): {dir: string; generator: () => string} => {
const dirName = 'gotifyplugin_' + random;
const dir = path.join(testBuildPath, dirName);
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, 0o755);
fs.mkdirSync(dir, {recursive: true, mode: 0o755});
}
return {
dir,
Expand Down Expand Up @@ -105,7 +105,7 @@ const buildGoExecutable = (filename: string): Promise<void> => {
const envGotify = process.env.GOTIFY_EXE;
if (envGotify) {
if (!fs.existsSync(testBuildPath)) {
fs.mkdirSync(testBuildPath);
fs.mkdirSync(testBuildPath, {recursive: true});
}
fs.copyFileSync(envGotify, filename);
process.stdout.write(`### Copying ${envGotify} to ${filename}\n`);
Expand Down

0 comments on commit ef523c4

Please sign in to comment.