From 57b2ae29eefc16cb7c530a4cd293fb14e4db5b4a Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 12 Apr 2024 10:34:31 -0500 Subject: [PATCH] Fix check for file existence --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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