aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-lib.in
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-02-15 02:06:06 +0000
committermerakor <cem@ckyln.com>2022-02-15 02:06:06 +0000
commitd922b51183189579ce942d63fd9af8fdb24b2ca9 (patch)
treeef93f5f9b2c6ff34b2f477c65fa4377773b42cd8 /src/cpt-lib.in
parent019d2ed7d57c5bc5ffb72e25580f8495ad41f13f (diff)
downloadcpt-d922b51183189579ce942d63fd9af8fdb24b2ca9.tar.gz
pkg_manifest(): simplify sed call
FossilOrigin-Name: acaff72ff934f6421462bc7b0a799c0fa56ad86004a0b0734587abe2cf669ed5
Diffstat (limited to 'src/cpt-lib.in')
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
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() (