From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 82E1A158089 for ; Mon, 9 Oct 2023 00:05:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7D962BC017; Mon, 9 Oct 2023 00:05:49 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ADCA82BC017 for ; Mon, 9 Oct 2023 00:05:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C94D1335C34 for ; Mon, 9 Oct 2023 00:05:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 73D30AF9 for ; Mon, 9 Oct 2023 00:05:47 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1696809944.477b9842eab60e258902238b648bc96462b68465.robbat2@gentoo> Subject: [gentoo-commits] proj/releng:master commit in: scripts/ X-VCS-Repository: proj/releng X-VCS-Files: scripts/copy_buildsync.sh X-VCS-Directories: scripts/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 477b9842eab60e258902238b648bc96462b68465 X-VCS-Branch: master Date: Mon, 9 Oct 2023 00:05:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d2aeb97e-7917-4108-8ffc-2d6e87d9d0d4 X-Archives-Hash: 0bd85632bdc49f63dff9da628cdd33d0 commit: 477b9842eab60e258902238b648bc96462b68465 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Oct 9 00:05:44 2023 +0000 Commit: Robin H. Johnson gentoo 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 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 )