cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit dd3525f3fdb422b3d133c39ff0b12da0a69b0cbc
parent 5a1f80efc2d1d5b90f095e54100ca69e0d5d0e82
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 22 Apr 2020 16:47:47 +0300

kiss: drop '-d' flag from sort

'-d' is not needed as sort will always list the directories first.
Dropping '-d' also makes it faster than awk.

Diffstat:
Mkiss | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kiss b/kiss @@ -859,7 +859,7 @@ pkg_install_files() { man_tot=$(wc -l < "$2/$pkg_db/${2##*/}/manifest") # Do a dictionary sort of the file so that we list directories first. - sort -d "$2/$pkg_db/${2##*/}/manifest" | + sort "$2/$pkg_db/${2##*/}/manifest" | while read -r line; do i=$((i+1)) # Grab the permissions so that we can preserve them. perms=$(stat -c %a "$tar_dir/$pkg_name/$line")