index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2016-10-11 23:04:25 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-10-22 20:50:55 +1000 |
commit | 577701250d645d1fc1a505cde34aedbeb3208ea5 (patch) | |
tree | 779183b41b3a84fd012a4dbb38337aed00ad0025 /scripts/libmakepkg/integrity/verify_checksum.sh.in | |
parent | 603f087cd73aff0d39bf0ebfb23aaae5626cb814 (diff) |
-rw-r--r-- | scripts/libmakepkg/integrity/verify_checksum.sh.in | 4 |
diff --git a/scripts/libmakepkg/integrity/verify_checksum.sh.in b/scripts/libmakepkg/integrity/verify_checksum.sh.in index 44a2b2e1..5830aff3 100644 --- a/scripts/libmakepkg/integrity/verify_checksum.sh.in +++ b/scripts/libmakepkg/integrity/verify_checksum.sh.in @@ -82,8 +82,8 @@ verify_integrity_one() { return 1 fi - local realsum="$(openssl dgst -${integ} "$file")" - realsum="${realsum##* }" + local realsum="$("${integ}sum" "$file")" + realsum="${realsum%% *}" if [[ ${expectedsum,,} = "$realsum" ]]; then printf '%s\n' "$(gettext "Passed")" >&2 else |