diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-06-18 18:39:40 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-06-18 18:39:40 +0000 |
commit | 94215b6e320675064ab7da76cf44128327764fb1 (patch) | |
tree | 4f51521a9b93a24bb3ee7c51c38cefcff8b82768 /kiss | |
parent | 4ec8eb7ccaa4b29e4f7b8820ba09265a1923a8ad (diff) | |
download | cpt-94215b6e320675064ab7da76cf44128327764fb1.tar.gz |
kiss: Avoid usage of /dev/stdout.
FossilOrigin-Name: 26ab1c6237ef9a7ce9d097c42908b34ef8c336169417fbd95c5089bcf32ce86c
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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() { |