copy_buildsync: fix double ln

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2023-10-08 17:05:44 -07:00
parent 5dedbbbbad
commit 477b9842ea
No known key found for this signature in database
GPG key ID: 19395F23C58826C4

View file

@ -235,7 +235,6 @@ process_arch() {
# If it doesn't exist, add it. # If it doesn't exist, add it.
if [[ ! -e "$variant_file" ]]; then if [[ ! -e "$variant_file" ]]; then
doit=1 doit=1
ln -s -t . "${variant_file}"
else else
# If it does exist, check carefully to see if anything is different # If it does exist, check carefully to see if anything is different
# Does it point to somewhere else? # Does it point to somewhere else?
@ -246,7 +245,7 @@ process_arch() {
[[ "$vft" != "$(readlink -f "$variant_file")" ]] && doit=1 [[ "$vft" != "$(readlink -f "$variant_file")" ]] && doit=1
[[ "$vfb" -nt "$vft" ]] && doit=1 [[ "$vfb" -nt "$vft" ]] && doit=1
fi fi
[[ $doit -eq 1 ]] && ln -sf -t . "../${variant_file}" [[ $doit -eq 1 ]] && ln -sf -t . "${variant_file}"
done done
) )