Fix shellcheck lint
This commit is contained in:
@@ -3,8 +3,9 @@ set -eo pipefail
|
|||||||
|
|
||||||
files=()
|
files=()
|
||||||
|
|
||||||
|
# shellcheck disable=SC2044
|
||||||
for vars in $(find distros/ -name '*.pkrvars.hcl'); do
|
for vars in $(find distros/ -name '*.pkrvars.hcl'); do
|
||||||
file=$(echo var.iso.url | packer console -var-file=${vars} -config-type=hcl2 sources/)
|
file=$(echo var.iso.url | packer console -var-file="${vars}" -config-type=hcl2 sources/)
|
||||||
base="$(basename "${file}")"
|
base="$(basename "${file}")"
|
||||||
if [ -e "cache/${base}" ]; then
|
if [ -e "cache/${base}" ]; then
|
||||||
echo "Found cache/${base} already"
|
echo "Found cache/${base} already"
|
||||||
@@ -15,6 +16,6 @@ done
|
|||||||
|
|
||||||
mkdir -p cache
|
mkdir -p cache
|
||||||
pushd cache
|
pushd cache
|
||||||
echo "Downloading ${files[@]}"
|
echo "Downloading ${files[*]}"
|
||||||
curl --parallel -L "${files[@]}"
|
curl --parallel -L "${files[@]}"
|
||||||
popd
|
popd
|
||||||
|
|||||||
Reference in New Issue
Block a user