File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
registry/coder/modules/devcontainers-cli Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments