From 107922f3d0609d3f2184507c7d32c83eaf53bd95 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Wed, 26 Jun 2024 22:04:16 -0500 Subject: [PATCH] Suppress Shellcheck errors --- nix/cache.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/cache.nix b/nix/cache.nix index 5db075d..2d57d57 100644 --- a/nix/cache.nix +++ b/nix/cache.nix @@ -25,7 +25,8 @@ in writeShellApplication { map (d: '' url=$(echo var.iso.url | packer console -var-file="${distroFile d}" -config-type=hcl2 sources/) sha=$(echo var.iso.checksum | packer console -var-file="${distroFile d}" -config-type=hcl2 sources/) - if [ -z "$(mc ls storage/isos/cache/ | grep $sha)" ]; then + # shellcheck disable=SC2143 + if [ -z "$(mc ls storage/isos/cache/ | grep "$sha")" ]; then curl --retry 3 --retry-all-errors -o "cache/$sha.iso" "$url" mc put "cache/$sha.iso" "storage/isos/cache/$sha.iso" else