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