kiss-size: prepend KISS_ROOT

This commit is contained in:
Dylan Araps 2021-07-04 13:52:35 +03:00
parent b2646fc0ef
commit 8a00327cb6
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -27,7 +27,8 @@ kiss list "${1:-null}" >/dev/null || {
# Filter directories from manifest and leave only files.
# Directories in the manifest end in a trailing '/'.
files=$(sed 's|.*/$||' "$KISS_ROOT/var/db/kiss/installed/$1/manifest")
files=$(sed -e "s|^|$KISS_ROOT|" -e 's|.*/$||' \
"$KISS_ROOT/var/db/kiss/installed/$1/manifest")
# Send the file list to 'du'.
# This unquoted variable is safe as word splitting is intended