From d922b51183189579ce942d63fd9af8fdb24b2ca9 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 15 Feb 2022 02:06:06 +0000 Subject: pkg_manifest(): simplify sed call FossilOrigin-Name: acaff72ff934f6421462bc7b0a799c0fa56ad86004a0b0734587abe2cf669ed5 --- src/cpt-lib.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 27d57e4..d50a986 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1086,7 +1086,7 @@ pkg_manifest() ( # sed: Remove the first character in each line (./dir -> /dir) and # remove all lines which only contain '.'. find . -type d -exec printf '%s/\n' {} + -o -print | - sort -r | sed '/^\.$/d;/^\.\/$/d;ss.ss' > "${2:-$pkg_dir}/$1/$pkg_db/$1/manifest" + sort -r | sed '/^\.\/*$/d;ss.ss' > "${2:-$pkg_dir}/$1/$pkg_db/$1/manifest" ) pkg_etcsums() ( -- cgit v1.2.3