mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-25 21:02:04 +00:00
Compare commits
3 Commits
73da4ed12c
...
bf19cbf698
| Author | SHA1 | Date | |
|---|---|---|---|
| bf19cbf698 | |||
| b40c74a723 | |||
| d3f15fbffd |
16
.pct-helpers
16
.pct-helpers
@ -141,6 +141,22 @@ 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