aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-22 13:47:47 +0000
committermerakor <cem@ckyln.com>2020-04-22 13:47:47 +0000
commit9cb6c938dfef8979d06ff35c951b469e0bab6320 (patch)
tree975733f3b3904f5dc6417dc81e14eaa14060c720
parent717fb53a41037631ae457caf132f655481f0c019 (diff)
downloadcpt-9cb6c938dfef8979d06ff35c951b469e0bab6320.tar.gz
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
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
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")