index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-02-15 15:00:12 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-02-15 15:00:12 -0500 |
commit | 2c504b8edc4f5ffde99323a65442675402cbd83b (patch) | |
tree | bb8b4299955350b054e30ed36fc05fb6b756f213 /mkarchroot.in | |
parent | df3eee40d3ff0a6c8532a1d19bad25d057330cd2 (diff) |
-rw-r--r-- | mkarchroot.in | 5 |
diff --git a/mkarchroot.in b/mkarchroot.in index 4cf8e56..4ebafa6 100644 --- a/mkarchroot.in +++ b/mkarchroot.in @@ -81,6 +81,11 @@ for file in "${files[@]}"; do cp "$file" "$working_dir$file" done +_env=() +while read -r varname; do + _env+=("$varname=${!varname}") +done < <(declare -x | sed -r 's/^declare -x ([^=]*)=.*/\1/' | grep -i '_proxy$') +env -i "${_env[@]}" \ pacstrap -GMcd ${pac_conf:+-C "$pac_conf"} "$working_dir" \ "${cache_dirs[@]/#/--cachedir=}" "$@" || die 'Failed to install all packages' |