From 477b9842eab60e258902238b648bc96462b68465 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 8 Oct 2023 17:05:44 -0700 Subject: [PATCH] copy_buildsync: fix double ln Signed-off-by: Robin H. Johnson --- 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 )