Skip to content

Commit

Permalink
Update rosiecord to implement new tweak version
Browse files Browse the repository at this point in the history
  • Loading branch information
acquitelol committed Mar 30, 2023
1 parent 65f4bfc commit 087e5e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified Enmity_Patches/Required/Enmity.Debug.deb
Binary file not shown.
Binary file modified Tweaks/Flowercord/packages/flowercord_1.0.0_iphoneos-arm.deb
Binary file not shown.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class Shell {
resolve(text.toString());
});
}
static async run(command = 'ls', after = (stderr, stdout) => { }) {
static async run(command = 'ls', after) {
return await new Promise((resolve) => {
exec(command, (stderr, stdout) => {
after(stderr, stdout);
after === null || after === void 0 ? void 0 : after(stderr, stdout);
resolve(stdout);
});
});
Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class Shell {
})
}

static async run(command: string = 'ls', after = (stderr: ExecException | null, stdout: string): void => {}): Promise<string> {
static async run(command: string = 'ls', after?: (stderr: ExecException | null, stdout: string) => any): Promise<string> {
return await new Promise((resolve): void => {
exec(command, (stderr, stdout): void => {
after(stderr, stdout);
after?.(stderr, stdout);
resolve(stdout);
});
});
Expand Down

0 comments on commit 087e5e6

Please sign in to comment.