From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 01 Aug 2025 11:22:12 +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 1uhlxs-005tqE-0P for lore@lore.pengutronix.de; Fri, 01 Aug 2025 11:22:12 +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 1uhlxr-0006td-V9; Fri, 01 Aug 2025 11:22:11 +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 1uhlxa-0006tP-Rk; Fri, 01 Aug 2025 11:21:54 +0200 Received: from dude06.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::5c]) 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 1uhlxa-00BMK1-2A; Fri, 01 Aug 2025 11:21:54 +0200 Received: from localhost ([::1] helo=dude06.red.stw.pengutronix.de) by dude06.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1uhlxa-002YkU-1p; Fri, 01 Aug 2025 11:21:54 +0200 From: Lars Schmidt To: ptxdist@pengutronix.de Date: Fri, 1 Aug 2025 11:21:53 +0200 Message-Id: <20250801092153.610071-1-l.schmidt@pengutronix.de> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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: , 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 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 -- 2.39.5