From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 01 Aug 2025 11:32:55 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uhm8F-005tx9-1r for lore@lore.pengutronix.de; Fri, 01 Aug 2025 11:32:55 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uhm8F-0000GC-Cl; Fri, 01 Aug 2025 11:32:55 +0200 Received: from mail.thorsis.com ([2003:a:e28:26e4::10]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uhm87-0000Fx-1q; Fri, 01 Aug 2025 11:32:47 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 63C081481677; Fri, 1 Aug 2025 11:32:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1754040766; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=VcteWgEfrlwyJoqnOUY2YQcuw1TrfSHw00PAuzsnb4s=; b=wvpfIv3ZqPTBxlcSSf/UZLzBEPVKP3al1vV7mNcOoXvviC+EUpb1BwlNt61ci/9iNT9gNk zTIXJqms1z/V3SgtR3mdIjw3ega7VYj3Bz4jPDV48cwFnaZeTyetG5Dyc72OqQDL4LRMXk c8E2Xmo3HetS/64aqWxO5ZCiiH23HShaLjjqGEbg4ZypEBgrkUWeRgYx9UzRrcEf52xZ3a q4+PgFDZMRKu0mzAHQKLuO4ITQO2IryvW9FQJSucI3MEKjoDk3+7rZQ/W9RpvK/DxNpCrH sz3yrmSRC4vWawoNX2XPhVm/SElkR0WGft8GDKwRnfDfcvKduOhhfXssPfiTWw== Date: Fri, 1 Aug 2025 11:32:45 +0200 To: ptxdist@pengutronix.de Message-ID: <20250801-endnote-vaseline-bb930423c9e1@thorsis.com> Mail-Followup-To: ptxdist@pengutronix.de, Lars Schmidt References: <20250801092153.610071-1-l.schmidt@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250801092153.610071-1-l.schmidt@pengutronix.de> User-Agent: Mutt/2.2.12 (2023-09-09) X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH] ptxd_make_world_inject: create target path before copying X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexander Dahl via ptxdist Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl , Lars Schmidt Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Hello Lars, Am Fri, Aug 01, 2025 at 11:21:53AM +0200 schrieb Lars Schmidt: > If the target path does not exist, the files are not copied. > To avoid that, create the target path in advance to copying the files. > > Signed-off-by: Lars Schmidt > --- > scripts/lib/ptxd_make_world_inject.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/lib/ptxd_make_world_inject.sh b/scripts/lib/ptxd_make_world_inject.sh > index e8e94fbe6..a31184dce 100644 > --- a/scripts/lib/ptxd_make_world_inject.sh > +++ b/scripts/lib/ptxd_make_world_inject.sh > @@ -24,6 +24,7 @@ ptxd_make_inject() { > > echo -e "\nInject file $(ptxd_print_path ${source}) into" \ > "$(ptxd_print_path ${target})..." > + mkdir -p "$(dirname "${target}")" > cp ${source} ${target} > } > export -f ptxd_make_inject Reviewed-by: Alexander Dahl Greets Alex