Skip to content

Commit

Permalink
revert "elevate-service: allow to be imported from third-party module…
Browse files Browse the repository at this point in the history
…s without side effects"

This reverts commit e0e8b18.
  • Loading branch information
kitsuned committed Oct 22, 2023
1 parent 2a5d8c0 commit ac952d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions services/elevate-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function patchRolesFile(path: string, requiredNames: string[] = ['*', 'com.webos
return false;
}

export default function main(argv: string[]) {
function main(argv: string[]) {
let [serviceName = 'org.webosbrew.hbchannel.service', appName = serviceName.split('.').slice(0, -1).join('.')] = argv;

if (serviceName === 'org.webosbrew.hbchannel') {
Expand Down Expand Up @@ -232,6 +232,4 @@ export default function main(argv: string[]) {
}
}

if (require.main === module) {
main(process.argv.slice(2));
}
main(process.argv.slice(2));

0 comments on commit ac952d6

Please sign in to comment.