mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
setup: unset bash exported function
Fix: #45239
This commit is contained in:
parent
dc28f145c1
commit
4fcd6a35a9
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,12 @@
|
|||
for var in $(awk 'BEGIN{for (i in ENVIRON) {print i}}' </dev/null); do
|
||||
# Those variables in chroot.sh will be kept
|
||||
case "$var" in
|
||||
BASH_FUNC_*'%%')
|
||||
# bash exported functions
|
||||
var="${var%??}"
|
||||
var="${var#BASH_FUNC_}"
|
||||
unset -f "$var"
|
||||
;;
|
||||
XBPS_* | IN_CHROOT | CHROOT_READY | SOURCE_DATE_EPOCH)
|
||||
# xbps-src specific
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue