serenity/Ports/.strip_env.sh
Tim Schumacher 7550017f97 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.
2022-05-21 18:12:07 +02:00

9 lines
248 B
Bash
Executable file

#!/usr/bin/env bash
exec env -i SERENITY_STRIPPED_ENV=1 \
MAKEJOBS="${MAKEJOBS:-}" \
IN_SERENITY_PORT_DEV="${IN_SERENITY_PORT_DEV:-}" \
SERENITY_ARCH="${SERENITY_ARCH:-}" \
SERENITY_TOOLCHAIN="${SERENITY_TOOLCHAIN:-}" \
"${@}"