From c21469a518328262c15cf717ef2ce3fddf522048 Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Thu, 14 Jul 2022 21:23:42 -0700 Subject: [PATCH] Update installation to consider symlinks as well. Addresses problem raised in #25 --- install_and_cache_pkgs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index bbf54dc..4de889d 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -33,7 +33,7 @@ for package in $packages; do # Pipe all package files (no folders) to Tar. dpkg -L $package | while IFS= read -r f; do - if test -f $f; then echo ${f:1}; fi; #${f:1} removes the leading slash that Tar disallows + if test -f $f || test -L $f; then echo "${f:1}"; fi; #${f:1} removes the leading slash that Tar disallows done | xargs tar -czf $cache_filepath -C / echo "done." @@ -48,4 +48,4 @@ for package in $packages; do done # Remove trailing comma. echo ${manifest:0:-1} > $manifest_filepath -echo "done." \ No newline at end of file +echo "done."