Skip to content

Commit 4231230

Browse files
committed
install-tree.sh: use tar to capture symlinks properly
Fixes: #616.
1 parent 558cff4 commit 4231230

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

install-tree.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ if ! dst="$(realpath -m "${dst}")"; then
1616
exit 1
1717
fi
1818

19-
cd "${src}"
20-
21-
find . -type f -perm /111 -exec install -Dm 0755 "{}" "${dst}/{}" \;
22-
find . -type f -not -perm /111 -exec install -Dm 0644 "{}" "${dst}/{}" \;
19+
mkdir -p "${dst}"
20+
( cd "${src}" && tar -cf - . ) | tar -xvf - -C "${dst}" --no-same-owner

0 commit comments

Comments
 (0)