Skip to content

Commit

Permalink
install-tree.sh: use tar to capture symlinks properly
Browse files Browse the repository at this point in the history
Fixes: #616.
  • Loading branch information
ahesford committed May 15, 2024
1 parent 558cff4 commit 4231230
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions install-tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ if ! dst="$(realpath -m "${dst}")"; then
exit 1
fi

cd "${src}"

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

0 comments on commit 4231230

Please sign in to comment.