diff --git a/.pct-helpers b/.pct-helpers index 7480b7c..64b34c4 100644 --- a/.pct-helpers +++ b/.pct-helpers @@ -147,8 +147,7 @@ normpath(){ getLatestTemplate(){ IFS=$'\n' local pattern=$1 - local tamplates=($(pveam available | grep ''${1}'.*$')) - # XXX this still includes "system .." + local templates=($(pveam available | grep -o ''${1}'.*$')) local latest=${templates[-1]} pveam download local ${latest}