Skip to content

Commit d5925ae

Browse files
committed
Update shebang in postBuild script to use 'env -S' for bash with verbose flag
On many systems, `env` does not work when bash is given a flag. `-S` ensures that the flag is passed to bash on all systems. This should fix a bug at least I was getting when trying to build binder images.
1 parent d905295 commit d5925ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command/use/commands/binder/binder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const createPostBuild = (
206206
pythonConfig: PythonConfiguration,
207207
) => {
208208
const postBuildScript: string[] = [];
209-
postBuildScript.push("#!/usr/bin/env bash -v");
209+
postBuildScript.push("#!/usr/bin/env -S bash -v");
210210
postBuildScript.push("");
211211
postBuildScript.push(`# determine which version of Quarto to install`);
212212
postBuildScript.push(`QUARTO_VERSION=${quartoConfig.version}`);

0 commit comments

Comments
 (0)