misc: nit

This commit is contained in:
Dylan Araps 2021-07-19 21:32:45 +03:00
parent 13cdbfc8dd
commit b08eac6f02
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

2
kiss
View File

@ -733,7 +733,7 @@ pkg_manifest() {
# Sort the output in reverse. Directories appear after their contents. # Sort the output in reverse. Directories appear after their contents.
sort -r > "$_tmp_file" sort -r > "$_tmp_file"
# Remove the first character in each line (./dir -> /dir). # Remove the prefix from each line.
while read -r file; do while read -r file; do
printf '%s\n' "${file#"$2/$1"}" printf '%s\n' "${file#"$2/$1"}"
done < "$_tmp_file" > "$2/$1/$pkg_db/$1/manifest" done < "$_tmp_file" > "$2/$1/$pkg_db/$1/manifest"