Skip to content

Commit

Permalink
Merge pull request #188 from wp-media/fix/183-operation-not-permitted…
Browse files Browse the repository at this point in the history
…-warning

Closes #183: Operation not permitted warning on dev latest commit
  • Loading branch information
Mai-Saad authored Jan 10, 2025
2 parents 7c06faa + e5deb0c commit 2617e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export async function updatePostStatus(id: number, status: string): Promise<void
export async function readFile(path: string): Promise<string> {
const cwd = configurations.rootDir;
const command = wrapPrefix(`sudo cat ${path}`);
const result = exec(command, { cwd: cwd, async: false });
const result = exec(command, { cwd: cwd, async: false, silent: true });

if (result.code !== 0) {
return '';
Expand Down

0 comments on commit 2617e94

Please sign in to comment.