mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
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:
@@ -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));
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user