grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/4] travis: Fix sparc64 build


From: Daniel Kiper
Subject: Re: [PATCH 2/4] travis: Fix sparc64 build
Date: Thu, 17 Sep 2020 15:48:23 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Sep 09, 2020 at 10:02:19PM +0200, Petr Vorel wrote:
> Instead non-existing sparc64-ieee1275 format use all 3 sparc64 formats:
> sparc64-ieee1275-{aout,cdcore,raw}.
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
>  .travis.yml | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/.travis.yml b/.travis.yml
> index 4bd05a30a..d019a0172 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -40,8 +40,8 @@ script:
>
>    # Build all selected GRUB targets.
>    - for target in $GRUB_TARGETS; do
> -      plat=${target#*-};
> -      arch=${target%-*};
> +      arch=$(echo $target | cut -d- -f1);
> +      plat=$(echo $target | cut -d- -f2);

I think it should be: plat=$(echo $target | cut -d- -f2-);
Note dash after "2"...

Though I would prefer this:
  arch=$(echo "$target" | cut -d - -f 1);
  plat=$(echo "$target" | cut -d - -f 2-);

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]