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 C201A15ACFB for ; Sun, 9 Apr 2023 07:19:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CB3DE0848; Sun, 9 Apr 2023 07:19:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 910B1E0848 for ; Sun, 9 Apr 2023 07:19:46 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9858B3410CA for ; Sun, 9 Apr 2023 07:19:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF7608E6 for ; Sun, 9 Apr 2023 07:19:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1681024703.3f57310291642f87717c94cae142fb03bcf0fcc0.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/emerge-webrsync X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3f57310291642f87717c94cae142fb03bcf0fcc0 X-VCS-Branch: master Date: Sun, 9 Apr 2023 07:19:42 +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: 46dba685-25c4-48ae-be54-4d49c5dea613 X-Archives-Hash: 3841ac3aa7625fb90fc0335bb45c6484 commit: 3f57310291642f87717c94cae142fb03bcf0fcc0 Author: Sam James gentoo org> AuthorDate: Sun Apr 9 07:18:23 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Apr 9 07:18:23 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=3f573102 bin/emerge-webrsync: use set -u in trap Signed-off-by: Sam James gentoo.org> bin/emerge-webrsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index 43ac18f46..83bb3ca1a 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -648,7 +648,7 @@ main() { if [[ ! -w ${TMPDIR} ]] ; then die "TMPDIR is not writable: ${TMPDIR}" fi - trap 'cd / ; rm -rf "${TMPDIR}"' EXIT + trap 'set -u ; cd / ; rm -rf "${TMPDIR}"' EXIT cd "${TMPDIR}" || exit 1 ${keep} || DISTDIR=${TMPDIR}