copy_buildsync: fix relative globbing

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2023-10-08 16:17:02 -07:00
parent ddd18bfa90
commit a4fdfd2a58
No known key found for this signature in database
GPG key ID: 19395F23C58826C4

View file

@ -218,7 +218,7 @@ process_arch() {
# install new links # install new links
# do NOT use -f here, we do not want to override the existing files. # do NOT use -f here, we do not want to override the existing files.
# this will ensure the mtime of the links does not change in most cases. # this will ensure the mtime of the links does not change in most cases.
ln -s --target-directory="current-$v"/ "../${variant_path}"* ( cd "$current_v" && ln -s --target-directory=. "../${variant_path}"* )
# Update keepfile # Update keepfile
echo "${variant_path}" | sed -e 's,/.*,,g' -e 's,^,/,g' -e 's,$,$,g' >>"${keepfile_tmp}" echo "${variant_path}" | sed -e 's,/.*,,g' -e 's,^,/,g' -e 's,$,$,g' >>"${keepfile_tmp}"