summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-07-01 13:49:20 +0200
committerErich Eckner <git@eckner.net>2020-07-01 13:49:20 +0200
commit6801a806c1f4ed6e0025f6befa4c50a24d65f8dd (patch)
tree22a08464a099179f04aa591e5cfbbef6cf747a3f
parentbd2aae694f4ea88bc9d49efbac60381e3110621e (diff)
downloaddevops-6801a806c1f4ed6e0025f6befa4c50a24d65f8dd.tar.xz
update-archlinux32-package: correctly update one-lined checksums
-rwxr-xr-xupdate-archlinux32-package13
1 files changed, 7 insertions, 6 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package
index 256daa0..aaece52 100755
--- a/update-archlinux32-package
+++ b/update-archlinux32-package
@@ -80,16 +80,17 @@ update_checksum() {
' \
</dev/null \
| sed '
- $! s/$/\\n/
- ' | \
- tr -d '\n'
+ $! s/$/\\n/
+ ' | \
+ tr -d '\n'
)
sed -i '
/^\S\+sums=(/{
:a
- N
- /)/!ba
- s/^\S\+sums=(.*)/'"${checksums}"'/
+ s/^\S\+sums=(.*)/'"${checksums}"'/
+ t
+ N
+ ba
}
' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"
}