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',
|
'MasedMSD',
|
||||||
'GitGitro',
|
'GitGitro',
|
||||||
'Shin-suechtig',
|
'Shin-suechtig',
|
||||||
|
'GT-610'
|
||||||
};
|
};
|
||||||
|
|
||||||
static const participants = <GhId>{
|
static const participants = <GhId>{
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ extension on _ContainerPageState {
|
|||||||
'${switch (_containerState.type) {
|
'${switch (_containerState.type) {
|
||||||
ContainerType.podman => 'podman',
|
ContainerType.podman => 'podman',
|
||||||
ContainerType.docker => 'docker',
|
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);
|
SSHPage.route.go(context, args);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user