From 9cb6c938dfef8979d06ff35c951b469e0bab6320 Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 22 Apr 2020 13:47:47 +0000 Subject: 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. FossilOrigin-Name: cc25e0519053fecfea652c6562c1d6d230525bbb7f16e9c81d7b8db5ed7c1279 --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 1879a43..b907659 100755 --- 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") -- cgit v1.2.3