From a362d7cf4d25591f555667f12787c801055d42de Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Tue, 18 Jun 2019 08:38:45 +0000 Subject: kiss: Simplify manifest find. FossilOrigin-Name: 2a7e7e985410cbc26b9278b2e12e37d306543568594b546e534d58de10cbe0f8 --- 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() { -- cgit v1.2.3