Merge pull request #322 from justinabrahms/patch-1
Fix issue w/ mkdirp race condition
This commit is contained in:
commit
089291525e
|
@ -21,7 +21,7 @@ const targetPath = path.join(systemdUserHome, "oasis.service");
|
|||
if (fs.existsSync(targetPath)) {
|
||||
console.log("Cowardly refusing to overwrite file:", targetPath);
|
||||
} else {
|
||||
mkdirp(systemdUserHome);
|
||||
mkdirp.sync(systemdUserHome);
|
||||
|
||||
const sourcePath = path.join(__dirname, "oasis.service");
|
||||
fs.copyFileSync(sourcePath, targetPath);
|
||||
|
|
Loading…
Reference in New Issue