Fix shellcheck
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user