From 8de5bd259480c4647dc4fd72d21857f73b91514f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 18 Jun 2019 11:38:46 +0300 Subject: [PATCH] kiss: Simplify manifest find. --- kiss | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index 5f3e440..ab7a5bb 100755 --- a/kiss +++ b/kiss @@ -131,9 +131,8 @@ pkg_strip() { pkg_manifest() { # Store the file and directory list of the package. # Directories have a trailing '/' and the list is sorted in reverse. - (cd "$pkg_dir" && { - find ./* -type d -print | sed 's!$!/!'; find . \! -type d - }) | sort -r | sed -e ss.ss | tee manifest > "$pkg_db/$name/manifest" + (cd "$pkg_dir" && find ./* -type d -exec printf '%s/\n' {} + -or -print) | + sort -r | sed -e ss.ss | tee manifest > "$pkg_db/$name/manifest" } pkg_tar() {