fix(container): Modify container execution commands to prioritize bash or ash (#995)

This commit is contained in:
GT610
2026-01-08 09:11:23 +08:00
committed by GitHub
parent 2c495a44c3
commit 29a57ad742
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ abstract final class GithubIds {
'MasedMSD',
'GitGitro',
'Shin-suechtig',
'GT-610'
};
static const participants = <GhId>{

View File

@@ -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;