Skip to content

Commit

Permalink
fix: update file permission for pocket-ic executable in case package …
Browse files Browse the repository at this point in the history
…manager has moved it
  • Loading branch information
nathanosdev committed Jan 7, 2024
1 parent e2e5b0b commit f461e35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/pic/src/pocket-ic-server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ChildProcess, spawn } from 'node:child_process';
import { resolve } from 'node:path';
import { chmodSync } from 'node:fs';
import {
BinNotFoundError,
BinStartError,
Expand Down Expand Up @@ -78,5 +79,7 @@ export class PocketIcServer {
if (!binExists) {
throw new BinNotFoundError(binPath);
}

chmodSync(binPath, 0o700);
}
}

0 comments on commit f461e35

Please sign in to comment.