Fix sudo pswd dialog neither re-appearing nor closing session

- Fixed that when empty password was provided the dialog should have stopped the session
- Fixed that when wrong password was provided the dialog should have appeared again but it didn't
This commit is contained in:
PaperCube
2024-02-17 01:46:02 +00:00
parent 52e94e902b
commit 21860daf41
3 changed files with 34 additions and 20 deletions

View File

@@ -272,7 +272,7 @@ class ServerProvider extends ChangeNotifier {
ensure(await client.run(ShellFunc.installerMkdirs).string);
ensure(await client.runWithSessionAction(ShellFunc.installerShellWriter,
ensure(await client.runForOutput(ShellFunc.installerShellWriter,
action: (session) async {
session.stdin.add(utf8.encode(ShellFunc.allScript));
})