Skip to content

Commit

Permalink
Revert "fix: only invoke a shell for docker commands known to cause p…
Browse files Browse the repository at this point in the history
…roblems on macos"

This reverts commit bc88f2e.
  • Loading branch information
anacierdem committed Oct 20, 2024
1 parent 48b9b8f commit 8635ac0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
4 changes: 0 additions & 4 deletions modules/actions/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ const exec = async (info) => {
// spawnProcess defaults does not apply to dockerExec so we need to
// provide these explicitly here.
inheritStderr: true,
spawnOptions: {
...opts.spawnOptions,
shell: true,
},
...opts,
}
)
Expand Down
11 changes: 1 addition & 10 deletions modules/actions/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,7 @@ const initContainer = async (libdragonInfo) => {
'-R',
`${uid >= 0 ? uid : ''}:${gid >= 0 ? gid : ''}`,
'/n64_toolchain',
],
{
userCommand: false,
inheritStdin: true,
inheritStdout: false,
inheritStderr: false,
spawnOptions: {
shell: true,
},
}
]
);
} catch (e) {
// Dispose the invalid container, clean and exit
Expand Down
1 change: 1 addition & 0 deletions modules/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ function spawnProcess(
// Prevent the annoying docker "What's next?" message. It messes up everything.
DOCKER_CLI_HINTS: 'false',
},
shell: true,
...spawnOptions,
});

Expand Down
11 changes: 1 addition & 10 deletions modules/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,7 @@ const installDependencies = async (libdragonInfo) => {
CONTAINER_TARGET_PATH + '/' + libdragonInfo.vendorDirectory,
...dockerHostUserParams(libdragonInfo),
],
['/bin/bash', './build.sh'],
{
userCommand: false,
inheritStdin: true,
inheritStdout: false,
inheritStderr: false,
spawnOptions: {
shell: true,
},
}
['/bin/bash', './build.sh']
);
};

Expand Down

0 comments on commit 8635ac0

Please sign in to comment.