diff options
author | Erich Eckner <git@eckner.net> | 2020-07-01 13:49:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-07-01 13:49:20 +0200 |
commit | 6801a806c1f4ed6e0025f6befa4c50a24d65f8dd (patch) | |
tree | 22a08464a099179f04aa591e5cfbbef6cf747a3f | |
parent | bd2aae694f4ea88bc9d49efbac60381e3110621e (diff) | |
download | devops-6801a806c1f4ed6e0025f6befa4c50a24d65f8dd.tar.xz |
update-archlinux32-package: correctly update one-lined checksums
-rwxr-xr-x | update-archlinux32-package | 13 |
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" } |