mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.
This commit is contained in:
@@ -34,7 +34,6 @@ enum AppShellFuncType {
|
||||
return statusCmds.join(_cmdDivider);
|
||||
case AppShellFuncType.docker:
|
||||
return '''
|
||||
# If the cmd result contains "permission denied", try to use `sudo`
|
||||
result=\$(docker version 2>&1)
|
||||
deniedStr="permission denied"
|
||||
containStr=\$(echo \$result | grep "\${deniedStr}")
|
||||
|
||||
@@ -148,7 +148,6 @@ class DockerProvider extends BusyProvider {
|
||||
}
|
||||
|
||||
Future<void> _onPwd(String event, StreamSink<Uint8List> stdin) async {
|
||||
print(event);
|
||||
if (isRequestingPwd) return;
|
||||
isRequestingPwd = true;
|
||||
if (event.contains('[sudo] password for ')) {
|
||||
|
||||
@@ -360,8 +360,6 @@ class _DockerManagePageState extends State<DockerManagePage> {
|
||||
text: _s.invalidVersionHelp(appHelpUrl),
|
||||
replace: 'Github',
|
||||
);
|
||||
|
||||
/// TODO: Add solution for these cases.
|
||||
case DockerErrType.parseImages:
|
||||
return const Text('Parse images error');
|
||||
case DockerErrType.parsePsItem:
|
||||
|
||||
Reference in New Issue
Block a user