cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit c740a78ef8f91654a25104e922ddfb2e4d3ae6cb
parent 7c01fcc347b2cd339605aff682692f27752350d4
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Tue, 18 Jun 2019 21:39:40 +0300

kiss: Avoid usage of /dev/stdout.

Diffstat:
Mkiss | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 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() {