From 6ce01392bd2d898895b992762e8b2e6727c0170e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 22 Apr 2020 17:51:42 +0300 Subject: [PATCH] kiss: Use sort to reverse the manifest --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 22aeff4..5d5dc31 100755 --- a/kiss +++ b/kiss @@ -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