mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new: server tab process
This commit is contained in:
@@ -240,7 +240,8 @@ class ServerProvider extends BusyProvider {
|
||||
|
||||
if (s.client == null) return;
|
||||
// run script to get server status
|
||||
raw = await s.client!.run("sh $shellPath").string;
|
||||
raw =
|
||||
await s.client!.run("sh $shellPath -${shellFuncStatus.flag}").string;
|
||||
segments = raw.split(seperator).map((e) => e.trim()).toList();
|
||||
if (raw.isEmpty || segments.length != CmdType.values.length) {
|
||||
s.state = ServerState.failed;
|
||||
|
||||
Reference in New Issue
Block a user