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 20B78158041 for ; Fri, 29 Mar 2024 10:31:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CED1E29F9; Fri, 29 Mar 2024 10:31:23 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC245E29F9 for ; Fri, 29 Mar 2024 10:31:22 +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 DFC0133DF47 for ; Fri, 29 Mar 2024 10:31:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 24BBEFA8 for ; Fri, 29 Mar 2024 10:31:20 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1711651716.ed6eb030f4bf489a935891eb5fbdd1f5b0dd659d.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/rsync-generation/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/rsync-generation/mksnapshot.sh X-VCS-Directories: scripts/rsync-generation/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: ed6eb030f4bf489a935891eb5fbdd1f5b0dd659d X-VCS-Branch: master Date: Fri, 29 Mar 2024 10:31:20 +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: b071a174-7738-4438-b601-6946933fc270 X-Archives-Hash: 7acb777e2e4ea5203fc300eac516d748 commit: ed6eb030f4bf489a935891eb5fbdd1f5b0dd659d Author: Fabian Groffen gentoo org> AuthorDate: Thu Mar 28 18:48:36 2024 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Mar 28 18:48:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=ed6eb030 scripts/rsync-generation/mksnapshot: shellcheck Signed-off-by: Fabian Groffen gentoo.org> scripts/rsync-generation/mksnapshot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/rsync-generation/mksnapshot.sh b/scripts/rsync-generation/mksnapshot.sh index 7879adc353..22808d58d4 100755 --- a/scripts/rsync-generation/mksnapshot.sh +++ b/scripts/rsync-generation/mksnapshot.sh @@ -14,7 +14,7 @@ SNAME=${PWD}/portage-$(date +%Y%m%d -d @${YESTERDAY}).tar TMPDIR=${PWD}/tmp-prefix-snapshot # clean up -find . -maxdepth 2 -daystart -ctime +4 -type f | xargs --no-run-if-empty rm +find . -maxdepth 2 -daystart -ctime +4 -type f -exec rm '{}' + # pull in active snapshot BOOTSTRAP_SNAPSHOT=$( \ @@ -31,7 +31,7 @@ mkdir -p "${TMPDIR}" # quickly take a snapshot, such that we get a consistent image pushd "${RSYNCTREE}" > /dev/null || exit 1 tar -cf "${SNAME}" --exclude=snapshots -- * || exit 1 -popd > /dev/null +popd > /dev/null || exit 1 # now revamp it such that it's in a directory "portage" rm -Rf "${TMPDIR}" @@ -40,7 +40,7 @@ pushd "${TMPDIR}" > /dev/null || exit 1 mkdir portage tar -xf "${SNAME}" -C portage/ tar --numeric-owner --format=posix --hard-dereference -cf "${SNAME}" portage/ -popd > /dev/null +popd > /dev/null || exit 1 rm -Rf "${TMPDIR}"