From 09f9c08872b5aa92953e09e8beb86315b8bd1b7c Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Thu, 1 Sep 2022 14:40:15 -0700 Subject: [PATCH] Fix permission denied error. (#51) --- 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 c0a30cc..84bd0de 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -75,7 +75,7 @@ for installed_package in ${installed_packages}; do while IFS= read -r f; do 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 / + sudo xargs tar -czf "${cache_filepath}" -C / log " done (compressed size $(du -h "${cache_filepath}" | cut -f1))." fi