Skip to content

Commit

Permalink
patch: upgrade etcher-sdk to 9.0.0 and axios to 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed Oct 30, 2023
1 parent 4ee8055 commit 3eea1c4
Show file tree
Hide file tree
Showing 5 changed files with 5,200 additions and 17,710 deletions.
4 changes: 2 additions & 2 deletions lib/shared/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ export async function isElevated(): Promise<boolean> {
}
return true;
}
return process.geteuid() === UNIX_SUPERUSER_USER_ID;
return process.geteuid!() === UNIX_SUPERUSER_USER_ID;
}

/**
* @summary Check if the current process is running with elevated permissions
*/
export function isElevatedUnixSync(): boolean {
return process.geteuid() === UNIX_SUPERUSER_USER_ID;
return process.geteuid!() === UNIX_SUPERUSER_USER_ID;
}

function escapeSh(value: any): string {
Expand Down
Loading

0 comments on commit 3eea1c4

Please sign in to comment.