feat: Sanitize environment variables (#1192)

This commit is contained in:
Kroese
2026-07-03 17:14:59 +02:00
committed by GitHub
parent d5821cd782
commit f45b308c78
9 changed files with 53 additions and 3 deletions
+4
View File
@@ -7,6 +7,10 @@ set -Eeuo pipefail
: "${CPU_FLAGS:=""}"
: "${CPU_MODEL:=""}"
HOST_CPU=$(strip "$HOST_CPU")
CPU_FLAGS=$(strip "$CPU_FLAGS")
CPU_MODEL=$(strip "$CPU_MODEL")
CLOCKSOURCE="tsc"
[[ "${ARCH,,}" == "arm64" ]] && CLOCKSOURCE="arch_sys_counter"
CLOCK="/sys/devices/system/clocksource/clocksource0/current_clocksource"