diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2023-10-08 17:05:44 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2023-10-08 17:05:44 -0700 |
commit | 477b9842eab60e258902238b648bc96462b68465 (patch) | |
tree | 5118972a1cf50adf1be9bae513c0b513efbd0af0 /scripts | |
parent | copy_buildsync: fix double ../.. (diff) | |
download | releng-477b9842eab60e258902238b648bc96462b68465.tar.gz releng-477b9842eab60e258902238b648bc96462b68465.tar.bz2 releng-477b9842eab60e258902238b648bc96462b68465.zip |
copy_buildsync: fix double ln
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/copy_buildsync.sh | 3 |
1 files changed, 1 insertions, 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 ) |