Skip to content

Commit

Permalink
fix: no sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorten committed Jan 28, 2022
1 parent 41db13d commit 5b00838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macOS/updateTccDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ const entries: string[] = [
export function updateTccDb(path: string): void {
for (const values of entries) {
const query = `INSERT OR IGNORE INTO access VALUES(${values});`;
execSync(`sudo sqlite3 "${path}" "${query}"`);
execSync(`sqlite3 "${path}" "${query}" >/dev/null 2>&1`);
}
}

0 comments on commit 5b00838

Please sign in to comment.