fix: termux compatibility (#495)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-26 22:31:17 +08:00
committed by GitHub
parent ceedd86310
commit 5db1253ab8
9 changed files with 41 additions and 34 deletions

View File

@@ -316,7 +316,7 @@ class ServerProvider extends ChangeNotifier {
final scriptRaw = ShellFunc.allScript(spi.custom?.cmds).uint8List;
try {
await s.client?.runForOutput(
await s.client!.runForOutput(
ShellFunc.installShellCmd,
action: (session) async {
session.stdin.add(scriptRaw);