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 <[email protected]>
> ---
>  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 <[email protected]>

Greets
Alex


Reply via email to