aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-02-15 01:54:24 +0000
committermerakor <cem@ckyln.com>2022-02-15 01:54:24 +0000
commit581e1d1930526aff4cd33e877beee2f3f7f69d87 (patch)
tree719d63e7568ae0dee739a6279dac53347566eaf6
parent3f7849cae0933a275b7f1e9b932d27d737fb982c (diff)
downloadcpt-6.2.x.tar.gz
pkg_manifest(): simplify sed callcpt-6.2.x
FossilOrigin-Name: dda7cbf21bc9cd7a9b4a82cae21d978619ba2e19f3cf36ef36cca0cd0cec1496
-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 23a75ec..3a57d00 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -1033,7 +1033,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() (