index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Ethan Sommer <e5ten.arch@gmail.com> | 2019-11-06 20:23:08 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-11-07 21:40:44 +1000 |
commit | 1df22d3242a5db640a83124402249d34ac2e61e9 (patch) | |
tree | 6699f53e37ce4d54ed587559b03791f6c3289f68 | |
parent | 7b73c4a75fbddcfa1bc552fed49c228b9cdaf7b0 (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 4 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index f7dd8948..5807a996 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -272,7 +272,7 @@ db_write_entry() { error "$(gettext "Cannot use armored signatures for packages: %s")" "$pkgfile.sig" return 1 fi - pgpsigsize=$(wc -c "$pkgfile.sig" | cut -d' ' -f1) + pgpsigsize=$(wc -c < "$pkgfile.sig") if (( pgpsigsize > 16384 )); then error "$(gettext "Invalid package signature file '%s'.")" "$pkgfile.sig" return 1 @@ -281,7 +281,7 @@ db_write_entry() { pgpsig=$(base64 "$pkgfile.sig" | tr -d '\n') fi - csize=$(wc -c "$pkgfile" | cut -d' ' -f1) + csize=$(wc -c < "$pkgfile") # compute checksums msg2 "$(gettext "Computing checksums...")" |