Skip to content

Commit

Permalink
Make execution run silently
Browse files Browse the repository at this point in the history
  • Loading branch information
jeawhanlee committed Jan 10, 2025
1 parent 43da580 commit e5deb0c
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 @@ -511,7 +511,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 e5deb0c

Please sign in to comment.