mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-25 21:02:04 +00:00
Compare commits
No commits in common. "bf19cbf69868a538b9dc6fd0372b721712af06d7" and "73da4ed12c00ae19a57dca60039557645cae66f7" have entirely different histories.
bf19cbf698
...
73da4ed12c
16
.pct-helpers
16
.pct-helpers
@ -141,22 +141,6 @@ normpath(){
|
|||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
#
|
|
||||||
# getLatestTemplate PATTERN [VAR]
|
|
||||||
#
|
|
||||||
getLatestTemplate(){
|
|
||||||
IFS=$'\n'
|
|
||||||
local pattern=$1
|
|
||||||
local tamplates=($(pveam available | grep $1))
|
|
||||||
local latest=${templates[-1]}
|
|
||||||
|
|
||||||
pveam download local ${latest}
|
|
||||||
|
|
||||||
[ -z $2 ] \
|
|
||||||
|| eval "$2=${latest}"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# xread [-n] MSG VAR
|
# xread [-n] MSG VAR
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user