From 15d0235a4147963374ec3a9334d73adf0cb9eabc Mon Sep 17 00:00:00 2001 From: sn-o-w Date: Thu, 13 Jul 2023 23:43:21 +0300 Subject: [PATCH] Fix awk (#109) --- 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 37ede9d..eed0f21 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -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))."