mirror of https://github.com/pyodide/pyodide.git
Replace references to /bin/bash with /usr/bin/env bash (#4478)
This commit is contained in:
parent
4e2bdcbaa7
commit
44107e8e78
|
@ -14,7 +14,7 @@ export SYSCONFIG_NAME=_sysconfigdata_$(CPYTHON_ABI_FLAGS)_emscripten_$(PLATFORM_
|
|||
# environment variables. The next line instructs make to use bash to run each
|
||||
# command.
|
||||
export BASH_ENV := $(PYODIDE_ROOT)/pyodide_env.sh
|
||||
SHELL := /bin/bash
|
||||
SHELL := /usr/bin/env bash
|
||||
|
||||
version_tmp_1 := $(subst ., ,$(PYVERSION:v%=%))
|
||||
# Handle alpha, beta, and release candidate versions
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# See the INSTALL/ directory for more examples.
|
||||
#
|
||||
SHELL = /bin/sh
|
||||
SHELL = /usr/bin/env sh
|
||||
#
|
||||
# The machine (platform) identifier to append to the library names
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export CMAKE_ARGS=" \
|
||||
-DPYTHON3_INCLUDE_PATH=$PYTHONINCLUDE \
|
||||
|
|
|
@ -192,7 +192,7 @@ def create_pyodide_script(venv_bin: Path) -> None:
|
|||
pyodide_path.write_text(
|
||||
dedent(
|
||||
f"""
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
PATH="{PATH}:$PATH" PYODIDE_ROOT='{PYODIDE_ROOT}' exec {original_pyodide_cli} "$@"
|
||||
"""
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# get the absolute path of the root folder
|
||||
# shellcheck disable=SC2164
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
":" /* << "EOF"
|
||||
This file is a bash/node polyglot. This is needed for a few reasons:
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Based on http://hpc.sourceforge.net/buildf2c with curl replaced by wget
|
||||
|
||||
|
|
Loading…
Reference in New Issue