Enclose filenames in single quotes to capture literals #99
This commit is contained in:
parent
270eae5fc9
commit
a644619d1f
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ for installed_package in ${installed_packages}; do
|
||||||
& get_install_filepath "" "${package_name}" "preinst" \
|
& get_install_filepath "" "${package_name}" "preinst" \
|
||||||
& get_install_filepath "" "${package_name}" "postinst"; } |
|
& get_install_filepath "" "${package_name}" "postinst"; } |
|
||||||
while IFS= read -r f; do test -f "${f}" -o -L "${f}" && get_tar_relpath "${f}"; done |
|
while IFS= read -r f; do test -f "${f}" -o -L "${f}" && get_tar_relpath "${f}"; done |
|
||||||
xargs -I {} echo \"{}\" |
|
xargs -I {} echo \'{}\' | # Single quotes ensure literals like backslash get captured.
|
||||||
sudo xargs tar -cf "${cache_filepath}" -C /
|
sudo xargs tar -cf "${cache_filepath}" -C /
|
||||||
|
|
||||||
log " done (compressed size $(du -h "${cache_filepath}" | cut -f1))."
|
log " done (compressed size $(du -h "${cache_filepath}" | cut -f1))."
|
||||||
|
|
Loading…
Reference in a new issue