commit:     477b9842eab60e258902238b648bc96462b68465
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  9 00:05:44 2023 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Oct  9 00:05:44 2023 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=477b9842

copy_buildsync: fix double ln

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 scripts/copy_buildsync.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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

Reply via email to