mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 01:57:16 +00:00
Fix awk (#109)
This commit is contained in:
parent
5dc87af4cc
commit
15d0235a41
|
@ -99,7 +99,7 @@ for installed_package in ${installed_packages}; do
|
|||
& get_install_script_filepath "" "${package_name}" "postinst"; } |
|
||||
while IFS= read -r f; do test -f "${f}" -o -L "${f}" && get_tar_relpath "${f}"; done |
|
||||
# Single quotes ensure literals like backslash get captured. Use \0 to avoid field separation.
|
||||
awk -F\0 '{print "\x27"$1"\x27"}' |
|
||||
awk -F"\0" '{print "\x27"$1"\x27"}' |
|
||||
sudo xargs tar -cf "${cache_filepath}" -C /
|
||||
|
||||
log " done (compressed size $(du -h "${cache_filepath}" | cut -f1))."
|
||||
|
|
Loading…
Reference in a new issue