Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled

This commit is contained in:
CanbiZ 2025-10-21 15:21:06 +02:00
parent 93f343fec5
commit ff1db9c90e

View File

@ -3010,8 +3010,8 @@ create_lxc_container() {
pveam update >/dev/null 2>&1 || msg_warn "Could not update template catalog (pveam update failed)." pveam update >/dev/null 2>&1 || msg_warn "Could not update template catalog (pveam update failed)."
mapfile -t ONLINE_TEMPLATES < <( mapfile -t ONLINE_TEMPLATES < <(
pveam available -section system 2>/dev/null | pveam available -section system 2>/dev/null |
awk '/\.tar\.(zst|xz|gz)/ {print $1}' |
grep -E "${SEARCH_PATTERN}.*${TEMPLATE_PATTERN}" | grep -E "${SEARCH_PATTERN}.*${TEMPLATE_PATTERN}" |
awk '{print $1}' |
sort -t - -k 2 -V sort -t - -k 2 -V
) )
ONLINE_TEMPLATE="" ONLINE_TEMPLATE=""
@ -3080,8 +3080,8 @@ create_lxc_container() {
) )
mapfile -t ONLINE_TEMPLATES < <( mapfile -t ONLINE_TEMPLATES < <(
pveam available -section system 2>/dev/null | pveam available -section system 2>/dev/null |
awk '/\.tar\.(zst|xz|gz)/ {print $1}' |
grep -E "${SEARCH_PATTERN}.*${TEMPLATE_PATTERN}" | grep -E "${SEARCH_PATTERN}.*${TEMPLATE_PATTERN}" |
awk '{print $1}' |
sort -t - -k 2 -V sort -t - -k 2 -V
) )
ONLINE_TEMPLATE="" ONLINE_TEMPLATE=""