Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-05 02:38:38 +03:00
parent bfe7482e1d
commit 03ac4bdbbb

View File

@ -154,7 +154,8 @@ getLatestTemplate(){
@ pveam download local ${latest} @ pveam download local ${latest}
latest=$(pveam list local | grep -o "^.*$latest") #latest=$(pveam list local | grep -o "^.*$latest")
latest=/var/lib/vz/template/cache/$latest
[ -z $2 ] \ [ -z $2 ] \
|| eval "$2=${latest}" || eval "$2=${latest}"