aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-08-04 18:49:31 +0000
committermerakor <cem@ckyln.com>2021-08-04 18:49:31 +0000
commitc4c43142eaff0a969794a04bd30ddc08fb67b164 (patch)
tree9d6115c657c0ee0d1defec3903f0bc69e42b7b73 /src
parenteeaa0e59b8289497ea3e7c0cdc00945874668d6e (diff)
downloadcpt-c4c43142eaff0a969794a04bd30ddc08fb67b164.tar.gz
fix rare find(1) bug during manifest generation
FossilOrigin-Name: 02129b3f28d3456f8248741e5b2ac07162a5add293470ccf7792190102b2af4f
Diffstat (limited to 'src')
-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 306c5bd..7514608 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -956,7 +956,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;ss.ss' > "${2:-$pkg_dir}/$1/$pkg_db/$1/manifest"
+ sort -r | sed '/^\.$/d;/^\.\/$/d;ss.ss' > "${2:-$pkg_dir}/$1/$pkg_db/$1/manifest"
)
pkg_etcsums() (