mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-11-02 05:00: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(){
|
getLatestTemplate(){
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
local pattern=$1
|
local pattern=$1
|
||||||
local tamplates=($(pveam available | grep $1))
|
local tamplates=($(pveam available | grep ''${1}'.*$'))
|
||||||
|
# XXX this still includes "system .."
|
||||||
local latest=${templates[-1]}
|
local latest=${templates[-1]}
|
||||||
|
|
||||||
pveam download local ${latest}
|
pveam download local ${latest}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user