mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 01:57:16 +00:00
Fix awk delimiter.
Pull in fix by @sn-o-w in d0ee83b497
mentioned in issue #99
This commit is contained in:
parent
21cb5295bf
commit
d037191b54
|
@ -98,7 +98,7 @@ for installed_package in ${installed_packages}; do
|
|||
& get_install_script_filepath "" "${package_name}" "preinst" \
|
||||
& 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.
|
||||
# Single quotes ensure literals like backslash get captured. Use \0 to avoid field separation.
|
||||
awk -F"\0" '{print "\x27"$1"\x27"}' |
|
||||
sudo xargs tar -cf "${cache_filepath}" -C /
|
||||
|
||||
|
|
Loading…
Reference in a new issue