* [ptxdist] [PATCH] ptxd_make_world_inject: create target path before copying
@ 2025-08-01 9:21 Lars Schmidt
2025-08-01 9:32 ` Alexander Dahl via ptxdist
0 siblings, 1 reply; 2+ messages in thread
From: Lars Schmidt @ 2025-08-01 9:21 UTC (permalink / raw)
To: ptxdist; +Cc: 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 <l.schmidt@pengutronix.de>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH] ptxd_make_world_inject: create target path before copying
2025-08-01 9:21 [ptxdist] [PATCH] ptxd_make_world_inject: create target path before copying Lars Schmidt
@ 2025-08-01 9:32 ` Alexander Dahl via ptxdist
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Dahl via ptxdist @ 2025-08-01 9:32 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Dahl, Lars Schmidt
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 <l.schmidt@pengutronix.de>
> ---
> 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 <ada@thorsis.com>
Greets
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-01 9:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-01 9:21 [ptxdist] [PATCH] ptxd_make_world_inject: create target path before copying Lars Schmidt
2025-08-01 9:32 ` Alexander Dahl via ptxdist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox