mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt: Shares
This commit is contained in:
@@ -308,14 +308,13 @@ class ServerProvider extends ChangeNotifier {
|
||||
try {
|
||||
Loggers.app.warning('Using SFTP to write script to ${spi.name}');
|
||||
file.writeAsString(ShellFunc.allScript);
|
||||
final sftp = Pros.sftp;
|
||||
final completer = Completer();
|
||||
final reqId = sftp.add(
|
||||
final reqId = Pros.sftp.add(
|
||||
SftpReq(spi, installShellPath, localPath, SftpReqType.upload),
|
||||
completer: completer,
|
||||
);
|
||||
await completer.future;
|
||||
final err = sftp.get(reqId)?.error;
|
||||
final err = Pros.sftp.get(reqId)?.error;
|
||||
if (err != null) {
|
||||
throw err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user