summaryrefslogtreecommitdiff
path: root/update-archlinux32-package
diff options
context:
space:
mode:
Diffstat (limited to 'update-archlinux32-package')
-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"
}