diff options
author | merakor <cem@ckyln.com> | 2020-04-22 13:47:47 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-22 13:47:47 +0000 |
commit | 9cb6c938dfef8979d06ff35c951b469e0bab6320 (patch) | |
tree | 975733f3b3904f5dc6417dc81e14eaa14060c720 | |
parent | 717fb53a41037631ae457caf132f655481f0c019 (diff) | |
download | cpt-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-x | kiss | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |