Skip to content

Commit 8816351

Browse files
test: install bash and execute with bash
1 parent ce25292 commit 8816351

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

registry/coder/modules/devcontainers-cli/main.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const executeScriptInContainerWithPackageManager = async (
2323
const instance = findResourceInstance(state, "coder_script");
2424
const id = await runContainer(image);
2525

26+
// Install bash
27+
await execContainer(id, [shell, "-c", "apk add bash"]);
28+
2629
// Install the specified package manager
2730
if (packageManager === "npm") {
2831
await execContainer(id, [shell, "-c", "apk add nodejs npm"]);
@@ -49,7 +52,7 @@ const executeScriptInContainerWithPackageManager = async (
4952

5053
const resp = await execContainer(
5154
id,
52-
[shell, "-c", instance.script],
55+
["bash", "-c", instance.script],
5356
[
5457
"--env",
5558
"CODER_SCRIPT_BIN_DIR=/tmp/coder-script-data/bin",

0 commit comments

Comments
 (0)