Replace references to /bin/bash with /usr/bin/env bash (#4478)

This commit is contained in:
Emil Nikolov 2024-02-04 18:54:17 +01:00 committed by GitHub
parent 4e2bdcbaa7
commit 44107e8e78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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
#

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
export CMAKE_ARGS=" \
-DPYTHON3_INCLUDE_PATH=$PYTHONINCLUDE \

View File

@ -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} "$@"
"""
)

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# get the absolute path of the root folder
# shellcheck disable=SC2164

View File

@ -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:

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
# Based on http://hpc.sourceforge.net/buildf2c with curl replaced by wget