From 001ce0396fd1d524ac96f1e5c47a6a20a8348fba Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 7 Jul 2021 10:30:43 +0300 Subject: [PATCH] kiss: improve install performance slightly --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 76dc759..407e0f9 100755 --- a/kiss +++ b/kiss @@ -1019,7 +1019,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. - sort "$2/$pkg_db/${2##*/}/manifest" | + sort "$2/$pkg_db/${2##*/}/manifest" > "$mak_dir/if" while read -r file; do # Grab the octal permissions so that directory creation @@ -1066,7 +1066,7 @@ pkg_install_files() { [ -h "$_file" ] || chmod "$b$oct" "$_file" } esac - done || : + done < "$mak_dir/if" || : } pkg_remove_files() {