mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-30 03:30:09 +00:00
tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bf19cbf698
commit
fb3de38a4f
@ -147,7 +147,8 @@ normpath(){
|
||||
getLatestTemplate(){
|
||||
IFS=$'\n'
|
||||
local pattern=$1
|
||||
local tamplates=($(pveam available | grep $1))
|
||||
local tamplates=($(pveam available | grep ''${1}'.*$'))
|
||||
# XXX this still includes "system .."
|
||||
local latest=${templates[-1]}
|
||||
|
||||
pveam download local ${latest}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user