aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-18 18:39:40 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-18 18:39:40 +0000
commit94215b6e320675064ab7da76cf44128327764fb1 (patch)
tree4f51521a9b93a24bb3ee7c51c38cefcff8b82768 /kiss
parent4ec8eb7ccaa4b29e4f7b8820ba09265a1923a8ad (diff)
downloadcpt-94215b6e320675064ab7da76cf44128327764fb1.tar.gz
kiss: Avoid usage of /dev/stdout.
FossilOrigin-Name: 26ab1c6237ef9a7ce9d097c42908b34ef8c336169417fbd95c5089bcf32ce86c
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss9
1 files changed, 6 insertions, 3 deletions
diff --git a/kiss b/kiss
index a38a7c8..3a7be73 100755
--- a/kiss
+++ b/kiss
@@ -20,7 +20,8 @@ source_type() {
}
pkg_clean() {
- rm -rf -- "$mak_dir" "$pkg_dir" "$cac_dir/manifest" "$cac_dir/tar"
+ rm -rf -- "$mak_dir" "$pkg_dir" \
+ "$cac_dir/manifest" "$cac_dir/tar" "$cac_dir/checksums"
}
pkg_search() {
@@ -84,8 +85,10 @@ pkg_checksum() {
}
pkg_verify() {
- [ "$(pkg_checksum /dev/stdout)" = "$(cat checksums)" ] ||
- die "Checksum mismatch, run '$kiss checksum $name'."
+ pkg_checksum "$cac_dir/checksums"
+
+ cmp -s "$cac_dir/checksums" checksums ||
+ die "checksum mismatch, run '$kiss checksum $name'."
}
pkg_extract() {