From eb177a2a2b2cc7c73fac60fdecce070222db12b9 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Thu, 30 Jun 2022 06:43:45 -0700 Subject: [PATCH] Report file size of cached packages. --- install_and_cache_pkgs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index e6533a1..e4fef7f 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -61,8 +61,8 @@ for package in ${normalized_packages}; do while IFS= read -r f; do if test -f $f; then echo "${f:1}"; fi; #${f:1} removes the leading slash that Tar disallows done | - xargs tar -czf "${cache_filepath}" -C / - echo "done." + xargs tar -czf "${cache_filepath}" -C / + echo "done (compressed size $(du -k "${cache_filepath}" | cut -f1))." fi # Comma delimited name:ver pairs in the all packages manifest.