From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 05 Aug 2025 07:00:34 +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 1uj9ms-007B5s-16 for lore@lore.pengutronix.de; Tue, 05 Aug 2025 07:00:34 +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 1uj9mr-0000Wo-TO; Tue, 05 Aug 2025 07:00:33 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uj9mD-00073v-7Z; Tue, 05 Aug 2025 06:59:53 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uj9mD-00Bz6A-07; Tue, 05 Aug 2025 06:59:53 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uj9mC-00FskG-3B; Tue, 05 Aug 2025 06:59:52 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Tue, 5 Aug 2025 06:59:52 +0200 Message-Id: <20250805045952.3785353-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250801092153.610071-1-l.schmidt@pengutronix.de> References: <20250801092153.610071-1-l.schmidt@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] 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: , Reply-To: ptxdist@pengutronix.de Cc: 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 Thanks, applied as 6b2f811a0403948a5475d0f56f05c3cd8ab2f001. Michael [sent from post-receive hook] On Tue, 05 Aug 2025 06:59:52 +0200, Lars Schmidt wrote: > 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 > Reviewed-by: Alexander Dahl > Message-Id: <20250801092153.610071-1-l.schmidt@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/scripts/lib/ptxd_make_world_inject.sh b/scripts/lib/ptxd_make_world_inject.sh > index e8e94fbe6397..a31184dced70 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