aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-09-14 14:31:46 +0000
committermerakor <cem@ckyln.com>2021-09-14 14:31:46 +0000
commit1b174bc95bf4a32759cac14c868aec6f4127cf0e (patch)
tree0eddd2afe28a80504096b927ed6ebc1be0cc7359
parent674c01cb33a9ac229c80209b05f0dcd464a41c05 (diff)
downloadcpt-1b174bc95bf4a32759cac14c868aec6f4127cf0e.tar.gz
cpt-fork: follow symlinks
FossilOrigin-Name: 7f64d08d88702117a3790b2acd713148a91b157912cc5a8d3d78375ff0a4aba8
-rwxr-xr-xcontrib/cpt-fork4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cpt-fork b/contrib/cpt-fork
index 21e1618..733c942 100755
--- a/contrib/cpt-fork
+++ b/contrib/cpt-fork
@@ -31,12 +31,12 @@ for pkg; do
case "$pkg" in
*/*)
[ -d "$pkg" ] || die "$pkg is not a directory"
- cp -r "$pkg" .
+ cp -Hr "$pkg" .
pkg=${pkg##*/}
;;
*)
cpt-search "$pkg" >/dev/null
- cp -r "$(cpt-search --single "$pkg")" .
+ cp -Hr "$(cpt-search --single "$pkg")" .
esac
# Sometimes forked packages are from the database and not from a repository.