From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 2C5A44E46; Thu, 04 Sep 2025 23:47:58 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 2D06B4CB8; Thu, 04 Sep 2025 23:47:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by atuin.qyliss.net (Postfix) with ESMTPS id BF9CD4C7E for ; Thu, 04 Sep 2025 23:47:48 +0000 (UTC) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-71d5fe46572so16826217b3.1 for ; Thu, 04 Sep 2025 16:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757029667; x=1757634467; darn=spectrum-os.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5o1u9hE4mnm7ppcEIFoiHAYBqJMZtAplyrQNJW7gSfM=; b=lNdKd6iNhmlc/HFdBlGao7W9i7/KtLy995TXpfoZj6KUGjbkF7girtgYSU94dkXcFU xJSkwjP28Hc/fyEKUt20mX9HNUfr2I7+/+pLaUShZdfCLX34D7QgwW8sq94fiwyQqLqJ rBBoy03YcKoPVrX1vT+kdv9sKFJeO9J+ryyXC6mKWJzGIjfK/cGtbVO2sF4onLLxWXZ0 baMwtcJusmbg1Q308YF5EinxsxDYkWBljSRt5oDvofTBxdIVygsOePOziqi0N8mXrs0+ 9MZh1ENh7WZKN4RagJ/SrUD2mK71gOxbMsGu3T7d+Hb2qi8FlhZv0obqn0SitXiUreqK VfvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757029667; x=1757634467; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5o1u9hE4mnm7ppcEIFoiHAYBqJMZtAplyrQNJW7gSfM=; b=PXT/9OXE/JcJHgrtUm3iKO2ZXaEUZqNuWVkciok/d6Gg4sC7goY6P2B7Ho1aELZhp0 Xa0mmUzBgSNhx4RXbKR9r8XM8nRUm0FeZm/AAO/25NEYIcY8iwsgq0GMAZH+S7oVyGqM J9LI9+rLOPi8cFqcPZbOApyTtA+whpCtmLjkECURdq1ljTfNE674Rl2hLR4nI+qubDQ4 wxFX+ZCdp7Pr3s6NRiyutFpW1s4D380cYq9bMkCi+/EkEp5n1EZmBvmCXjp9LHdYo/Ju sFJsL316E+plflUm8AkeAlEvAXh/0Y63UNpvKhbXC4K7Yg1tqagBhcwctYy0fRN+CbW+ nFwg== X-Gm-Message-State: AOJu0YxoURWMhQCxtsolgHxx5/2KoCeQdSil1lbH7vAgjkKqjL6vpYH8 bEFL/jhdi88sX3deeuKUKgo9tTi5PszwfZtOIoaiI9/L6SUu+e+cazwlV+0CykZs X-Gm-Gg: ASbGncuUGBszxW7kugfrsTNc893qhczwPufItZ38KDrFzSj0DB+E75syUE40LLBnvST wdN+B8zIO4MA8iI/GBDHGbUgCaM0FCk2H1zob6HBLsfnrjhq64qntOdyY8/lZUX2rSyZYdr8WpE hUuu7OkP8Yzzz32xYVK/Lz9ivKiQkj/7EiNTTYG41So4cIiQuGUd1BLCDUJHhsnxdySZ7K/co4i 9jQL3DW9SCOfu02uhJPtvRb4b6XPWdvCN+Mzz71xw10wmtqghP/M3naOmffkg9pnvkYfAnstGK5 Hp2+t/xGfywwMrQ7HpN1d2AVeR0d5LU6mu/2uQ34May4bULbrzmlEWyTP+nSf3QTwoIrt6QJ5vm 4ni125YocvA/09sQyfbDCcUouWWLdCk3UsE/2/WsenqK314EATXMejBT+Z1Aaa3ne+vZO3JVbTQ J18VTCLNmGFTIi0idY9iKSqs834sLpwwtRqCI7LmxXSlU= X-Google-Smtp-Source: AGHT+IFErvRIRAbebfRkfRDc8pRm7IVY12/jyPGxKUhfRAkugygfSNzVI+l73syujrqlxGG/oKZuvw== X-Received: by 2002:a05:690c:9214:b0:720:950:1559 with SMTP id 00721157ae682-72545e86b41mr14301517b3.17.1757029667555; Thu, 04 Sep 2025 16:47:47 -0700 (PDT) Received: from localhost.localdomain (h96-60-249-169.cncrtn.broadband.dynamic.tds.net. [96.60.249.169]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-723a82d58adsm25669787b3.2.2025.09.04.16.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Sep 2025 16:47:47 -0700 (PDT) From: Demi Marie Obenour Date: Thu, 04 Sep 2025 17:26:28 -0400 Subject: [PATCH 06/20] scripts/make-erofs.sh: Avoid unneeded calls to mkdir MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250904-systemd-v1-6-2a63b790a913@gmail.com> References: <20250904-systemd-v1-0-2a63b790a913@gmail.com> In-Reply-To: <20250904-systemd-v1-0-2a63b790a913@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1757021182; l=821; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=Vbkd5qP4q5pOAW/TUT73UnE5NRruV4prtgp3ZUkug1g=; b=NtXuArCBKyeb1YO5kseY+QtrZ3LSdiELIWRFS89rlJXOCeYwCD142xNSbELnH5CTQ4mt8cUq3 2Xq/8+NQynQCdqQ8qaphnGzkpfj7nXjWkvMNXK/PWO+DYdT9WMa1pBN X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: IZ6QBFM7YKWMLMWNMLCOXAGGXYJRW5IX X-Message-ID-Hash: IZ6QBFM7YKWMLMWNMLCOXAGGXYJRW5IX X-MailFrom: demiobenour@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Demi Marie Obenour , Alyssa Ross X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Don't call it if the target directory already exists. Signed-off-by: Demi Marie Obenour --- scripts/make-erofs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/make-erofs.sh b/scripts/make-erofs.sh index 93cb3245f409b24c24be05e9307a1b2e12c867fe..66abd1f388524c19cd3a1113415892d0d72e3f82 100755 --- a/scripts/make-erofs.sh +++ b/scripts/make-erofs.sh @@ -86,12 +86,12 @@ while read -r arg1; do # Create the parent directory if it doesn't already # exist. parent=${arg2%/*} + if [ ! -d "$root/$parent" ]; then + mkdir -p -- "$root/$parent" + fi ;; - (*) - parent=. - ;; + (*) :;; # parent $root which definitely exists esac - mkdir -p -- "$root/$parent" cp -RT -- "$arg1" "$root/$arg2" done -- 2.51.0