Thanks, applied as 33fa14b8b788e2d57d015c91c4c758708824a05d.

Michael

[sent from post-receive hook]

On Sun, 12 May 2024 15:16:41 +0200, Alexander Dahl <a...@thorsis.com> wrote:
> One line above $target is set to "${var}/$(subshell)" and even if $var
> _and_ the result of the subshell call is empty, there's still the slash.
> Thus target is never empty.
> 
> Signed-off-by: Alexander Dahl <a...@thorsis.com>
> Acked-by: Michael Riesch <michael.rie...@wolfvision.net>
> Message-Id: <20240506105051.323546-2-...@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de>
> 
> diff --git a/scripts/lib/ptxd_make_world_inject.sh 
> b/scripts/lib/ptxd_make_world_inject.sh
> index fe4eb8363619..5c2d0dc5fb3e 100644
> --- a/scripts/lib/ptxd_make_world_inject.sh
> +++ b/scripts/lib/ptxd_make_world_inject.sh
> @@ -11,9 +11,6 @@ ptxd_make_inject() {
>  
>      source="$(echo ${inject_file} | cut -d ":" -f 1)"
>      target="${pkg_source}/$(echo ${inject_file} | cut -d ":" -f 2)"
> -    if [ -z "${target}" ]; then
> -     target="${source}"
> -    fi
>  
>      if [[ "${source}" =~ ^/.* ]]; then
>       ptxd_bailout "'${source}' must not be an absolute path!" \

Reply via email to