From 9b3b2b590c20bc969b78d74ec349254d1f24ee21 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Mon, 2 Jan 2023 16:49:35 -0800 Subject: [PATCH] Enclose tar files in quotes #79. --- install_and_cache_pkgs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index f94b87c..c430222 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -93,6 +93,7 @@ for installed_package in ${installed_packages}; do & get_install_filepath "" "${package_name}" "preinst" \ & get_install_filepath "" "${package_name}" "postinst"; } | while IFS= read -r f; do test -f "${f}" -o -L "${f}" && get_tar_relpath "${f}"; done | + xargs -I {} echo \"{}\" | sudo xargs tar -cf "${cache_filepath}" -C / log " done (compressed size $(du -h "${cache_filepath}" | cut -f1))."