Fix shellcheck

This commit is contained in:
Greg Hellings
2025-08-19 20:32:22 -05:00
parent ec0b87cee7
commit 0f424e2e0c
+3 -4
View File
@@ -8,7 +8,7 @@ base="https://download.opensuse.org/repositories/systemsmanagement:/Agama:/Devel
# Working directory # Working directory
tmp="$(mktemp -d)" tmp="$(mktemp -d)"
trap "rm -rf '${tmp}'" EXIT trap 'rm -rf "${tmp}"' EXIT
checksums="${tmp}/checksums" checksums="${tmp}/checksums"
# Read the SHA256 sum value # Read the SHA256 sum value
@@ -19,6 +19,5 @@ done
sha="$(cut -d' ' -f 1 "${checksums}")" sha="$(cut -d' ' -f 1 "${checksums}")"
sed -E -i \ sed -E -i \
-e "s,( checksum *=).*$,\1 \"$sha\"," -e "s,( checksum *=).*$,\1 \"$sha\"," \
"${dir}/amd64.pkrvars.hcl"
rm -r "${tmp}"