Skip to content

Commit

Permalink
fix: temp directory permissions (#778) (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanpas authored and JohnstonCode committed Jan 24, 2020
1 parent 5a7e93c commit 3d69ae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tempFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function createTempSvnRevisionFile(
payload: string
): Promise<Uri> {
if (!(await exists(tempdir))) {
await mkdir(tempdir);
await mkdir(tempdir, { mode: 0o770 });
}

const fname = `r${revision}_${path.basename(svnUri.fsPath)}`;
Expand All @@ -27,7 +27,7 @@ export async function createTempSvnRevisionFile(
const encoding = configuration.get<string>("default.encoding");

if (!(await exists(path.join(tempdir, filePathHash)))) {
await mkdir(path.join(tempdir, filePathHash));
await mkdir(path.join(tempdir, filePathHash), { mode: 0o770 });
}

const fpath = path.join(tempdir, filePathHash, fname);
Expand Down
2 changes: 1 addition & 1 deletion src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function main() {
extensionTestsPath
});
} catch (err) {
console.error("Failed to run tests");
console.error(`Failed to run tests: ${err}\n${err.stack}`);
process.exit(1);
}
}
Expand Down

0 comments on commit 3d69ae5

Please sign in to comment.