diff --git a/distros/opensuse/tumbleweed/update.sh b/distros/opensuse/tumbleweed/update.sh index 23e02aa..37f05e2 100755 --- a/distros/opensuse/tumbleweed/update.sh +++ b/distros/opensuse/tumbleweed/update.sh @@ -8,7 +8,7 @@ base="https://download.opensuse.org/repositories/systemsmanagement:/Agama:/Devel # Working directory tmp="$(mktemp -d)" -trap "rm -rf '${tmp}'" EXIT +trap 'rm -rf "${tmp}"' EXIT checksums="${tmp}/checksums" # Read the SHA256 sum value @@ -19,6 +19,5 @@ done sha="$(cut -d' ' -f 1 "${checksums}")" sed -E -i \ - -e "s,( checksum *=).*$,\1 \"$sha\"," - -rm -r "${tmp}" + -e "s,( checksum *=).*$,\1 \"$sha\"," \ + "${dir}/amd64.pkrvars.hcl"