mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-01-13 12:34:25 +01:00
fix(container): Modify container execution commands to prioritize bash or ash (#995)
This commit is contained in:
@@ -22,6 +22,7 @@ abstract final class GithubIds {
|
||||
'MasedMSD',
|
||||
'GitGitro',
|
||||
'Shin-suechtig',
|
||||
'GT-610'
|
||||
};
|
||||
|
||||
static const participants = <GhId>{
|
||||
|
||||
@@ -219,7 +219,7 @@ extension on _ContainerPageState {
|
||||
'${switch (_containerState.type) {
|
||||
ContainerType.podman => 'podman',
|
||||
ContainerType.docker => 'docker',
|
||||
}} exec -it ${dItem.id} sh',
|
||||
}} exec -it ${dItem.id} sh -c "command -v bash && exec bash || command -v ash && exec ash || exec sh"',
|
||||
);
|
||||
SSHPage.route.go(context, args);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user