From d037191b5496e69f0d1836e54093b4e575597163 Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Mon, 30 Oct 2023 10:31:12 -0700 Subject: [PATCH] Fix awk delimiter. Pull in fix by @sn-o-w in https://github.com/sn-o-w/cache-apt-pkgs-action/commit/d0ee83b497ac30023e51cd526c62e57b07501912 mentioned in issue #99 --- install_and_cache_pkgs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index eed0f21..1dacb06 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -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 /