diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbac26d..3a4a47a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -77,7 +77,7 @@ downloads: - |- for vars in $(find distros/ -name '*.pkrvars.hcl'); do file=$(echo var.iso.url | packer console -var-file=${vars} -config-type=hcl2 sources/) - if [ ! -e "cache/${file}" ]; then + if [ ! -e "cache/$(basename '${file}')" ]; then files+=("-O" "${file}") fi done