Fix /bin/bash -> /usr/bin/env bash (#1793)

This commit is contained in:
Sirius902 2025-01-29 21:16:26 -08:00 committed by GitHub
parent c767f49455
commit 89b7bb0d71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 11 additions and 11 deletions

View File

@ -33,4 +33,4 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
WORKDIR /mm
RUN git config --global --add safe.directory /mm
ENTRYPOINT ["/bin/bash", "-c"]
ENTRYPOINT ["/usr/bin/env", "bash", "-c"]

View File

@ -6,7 +6,7 @@
MAKEFLAGS += --no-builtin-rules
# Ensure the build fails if a piped command fails
SHELL = /bin/bash
SHELL = /usr/bin/env bash
.SHELLFLAGS = -o pipefail -c
# OS Detection

View File

@ -29,7 +29,7 @@ and look for `mm` under the "REPOSITORY" column.
To start the container, you can mount your local filesystem into the Docker container and run an interactive bash session.
```bash
docker run -it --rm --mount type=bind,source="$(pwd)",destination=/mm mm /bin/bash
docker run -it --rm --mount type=bind,source="$(pwd)",destination=/mm mm "/usr/bin/env bash"
```
- The `-it` flags Keep STDIN open even if not attached to the container and allocates a pseudo-tty terminal.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -o pipefail
INPUT="$1"
OUTPUT="${INPUT%.*}.o"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Given a list of header files, compute the bss index that results from
# including them. (See prevent_bss_reordering.h for more information.)

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
STATUSOLD=`git status --porcelain`
./tools/format.py -j

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script checks for overlay's relocs to be correctly used on the spec file depending on the overlay's NON_MATCHING/NON_EQUIVALENT
# and minimize possible broken NON_MATCHING builds.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
shopt -s globstar

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
# This script can be used when you want to test locally the amount of warnings produced by your changes before doing a PR.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Terminal colour codes
# when $TERM is empty (non-interactive shell), then expand tput with '-T xterm-256color'

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
# This script should only be used when we need to modify the accepted amount of warnings.