Skip to content

Commit

Permalink
don't update jailer without root
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Nov 18, 2024
1 parent 5369c66 commit 7942fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function runService(): void {

try {
const appInfo = await getAppInfo(installedPackageId);
if (appInfo.type === 'native') {
if (appInfo.type === 'native' && runningAsRoot) {
await createToast(`Updating jailer config for ${appInfo.title}…`, service);
await buildBetterJail(appInfo.id, appInfo.folderPath)

Check failure on line 503 in services/service.ts

View workflow job for this annotation

GitHub Actions / build / build

Delete `⏎············`
.catch((err) => console.warn('jailer execution failed:', err));

Check failure on line 504 in services/service.ts

View workflow job for this annotation

GitHub Actions / build / build

Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function
Expand Down

0 comments on commit 7942fc4

Please sign in to comment.