mirror of https://github.com/zeldaret/mm.git
Fix /bin/bash -> /usr/bin/env bash (#1793)
This commit is contained in:
parent
c767f49455
commit
89b7bb0d71
|
@ -33,4 +33,4 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
|
||||||
WORKDIR /mm
|
WORKDIR /mm
|
||||||
RUN git config --global --add safe.directory /mm
|
RUN git config --global --add safe.directory /mm
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "-c"]
|
ENTRYPOINT ["/usr/bin/env", "bash", "-c"]
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@
|
||||||
MAKEFLAGS += --no-builtin-rules
|
MAKEFLAGS += --no-builtin-rules
|
||||||
|
|
||||||
# Ensure the build fails if a piped command fails
|
# Ensure the build fails if a piped command fails
|
||||||
SHELL = /bin/bash
|
SHELL = /usr/bin/env bash
|
||||||
.SHELLFLAGS = -o pipefail -c
|
.SHELLFLAGS = -o pipefail -c
|
||||||
|
|
||||||
# OS Detection
|
# OS Detection
|
||||||
|
|
|
@ -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.
|
To start the container, you can mount your local filesystem into the Docker container and run an interactive bash session.
|
||||||
|
|
||||||
```bash
|
```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.
|
- The `-it` flags Keep STDIN open even if not attached to the container and allocates a pseudo-tty terminal.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
INPUT="$1"
|
INPUT="$1"
|
||||||
OUTPUT="${INPUT%.*}.o"
|
OUTPUT="${INPUT%.*}.o"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Given a list of header files, compute the bss index that results from
|
# Given a list of header files, compute the bss index that results from
|
||||||
# including them. (See prevent_bss_reordering.h for more information.)
|
# including them. (See prevent_bss_reordering.h for more information.)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
STATUSOLD=`git status --porcelain`
|
STATUSOLD=`git status --porcelain`
|
||||||
./tools/format.py -j
|
./tools/format.py -j
|
||||||
|
|
|
@ -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
|
# 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.
|
# and minimize possible broken NON_MATCHING builds.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
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.
|
# This script can be used when you want to test locally the amount of warnings produced by your changes before doing a PR.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Terminal colour codes
|
# Terminal colour codes
|
||||||
# when $TERM is empty (non-interactive shell), then expand tput with '-T xterm-256color'
|
# when $TERM is empty (non-interactive shell), then expand tput with '-T xterm-256color'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# This script should only be used when we need to modify the accepted amount of warnings.
|
# This script should only be used when we need to modify the accepted amount of warnings.
|
||||||
|
|
Loading…
Reference in New Issue