Skip to content

Commit

Permalink
Enclose tar files in quotes #79.
Browse files Browse the repository at this point in the history
  • Loading branch information
awalsh128 committed Jan 3, 2023
1 parent a71b0ea commit 9b3b2b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install_and_cache_pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))."
Expand Down

0 comments on commit 9b3b2b5

Please sign in to comment.