From 95e3fc8f8e3bde54487b2e62b5134d8ba6b54be9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 3 Jul 2021 14:34:13 +0000 Subject: [PATCH] misc: nit --- kiss | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kiss b/kiss index 9ebcb95..890e543 100755 --- a/kiss +++ b/kiss @@ -568,16 +568,16 @@ pkg_manifest() ( cd "${2:-$pkg_dir}/$1" # find: Print all files and directories and append '/' to directories. + { + find . -type d -exec printf '%s/\n' {} + + find . ! -type d -print + } | + # sort: Sort the output in *reverse*. Directories appear *after* their # contents. # sed: Remove the first character in each line (./dir -> /dir) and # remove all lines which only contain '.'. - { - find . -type d -exec printf '%s/\n' {} + - find . ! -type d -print - - } | sort -r | - sed '/^\.\/$/d;ss.ss' > "${2:-$pkg_dir}/$1/$pkg_db/$1/manifest" + sort -r | sed '/^\.\/$/d;ss.ss' > "$PWD/$pkg_db/$1/manifest" ) pkg_etcsums() (