mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 13:27:35 +00:00
Ports: Sanitize environment before handling Ports
This keeps users from leaking their host environment variables (CFLAGS, etc.) into Ports, and it keeps us from leaking Port-specific settings into their dependencies.
This commit is contained in:
parent
bdac8c53ea
commit
7550017f97
3 changed files with 15 additions and 0 deletions
|
@ -2,6 +2,12 @@
|
|||
set -eu
|
||||
|
||||
SCRIPT="$(dirname "${0}")"
|
||||
|
||||
if [ -z "${SERENITY_STRIPPED_ENV:-}" ]; then
|
||||
exec "${SCRIPT}/.strip_env.sh" "${@}"
|
||||
fi
|
||||
unset SERENITY_STRIPPED_ENV
|
||||
|
||||
export MAKEJOBS="${MAKEJOBS:-$(nproc)}"
|
||||
|
||||
maybe_source() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue