Skip to content

Commit 96a5488

Browse files
committed
fix: Fix password dialog not disappearing for plugin sudo requests
1 parent 0971cee commit 96a5488

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"deploy": "npm run pkg && npm run notarize && npm run upload",
145145
"prepublishOnly": "npm run build"
146146
},
147-
"version": "1.1.0-beta2",
147+
"version": "1.1.0-beta3",
148148
"bugs": "https://github.com/codifycli/codify/issues",
149149
"keywords": [
150150
"oclif",

src/ui/reporters/default-reporter.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ export class DefaultReporter implements Reporter {
215215
ctx.log(`Plugin: "${pluginName}" requires root access to run command: "sudo ${data.command}"`);
216216
const title = `Plugin: "${pluginName}" requires root access to run command: "sudo ${data.command}"`;
217217

218-
return this.promptSudoPassword({ title, cancellable: false });
218+
const password = await this.promptSudoPassword({ title, cancellable: false });
219+
await this.displayProgress();
220+
return password;
219221
}
220222

221223
displayPlan(plan: Plan): void {

0 commit comments

Comments
 (0)