kiss: Use sort to reverse the manifest

This commit is contained in:
Dylan Araps 2020-04-22 17:51:42 +03:00
parent 6f31468c94
commit 6ce01392bd
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 1 deletions

2
kiss
View File

@ -821,7 +821,7 @@ pkg_install_files() {
# Reverse the manifest file so that we start shallow and go
# deeper as we iterate over each item. This is needed so that
# directories are created going down the tree.
awk '{L[n++]=$0}END{while(n--)print L[n]}' "$2/$pkg_db/${2##*/}/manifest" |
sort "$2/$pkg_db/${2##*/}/manifest" |
while read -r line; do i=$((i+1))
# Grab the octal permissions so that directory creation