Minor formatting change and whitespace removal.

This commit is contained in:
awalsh128 2022-08-05 23:42:36 -07:00
parent c78e2b67c2
commit 6e061b9142
2 changed files with 3 additions and 3 deletions

View file

@ -75,8 +75,8 @@ 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 /
log " done (compressed size $(du -h "${cache_filepath}" | cut -f1))."
xargs tar -czf "${cache_filepath}" -C /
log " * Cached ${installed_package_name} to ${cache_filepath} (compressed size $(du -h "${cache_filepath}" | cut -f1))."
fi
# Comma delimited name:ver pairs in the all packages manifest.

2
lib.sh
View file

@ -6,7 +6,7 @@ function normalize_package_list {
# Remove extraneous spaces at the middle, beginning, and end.
local trimmed="$(echo "${stripped}" | sed 's/\s\+/ /g; s/^\s\+//g; s/\s\+$//g')"
local sorted="$(echo ${trimmed} | tr ' ' '\n' | sort | tr '\n' ' ')"
echo "${sorted}"
echo "${sorted}"
}
# Gets a list of installed packages as space delimited pairs with each pair colon delimited.