Subject: Re: [bug#58345] [PATCH 2/3] guix-install.sh: Introduce 'die' utility function.

From: Maxim Cournoyer <[email-masked]>
Date: Fri, 07 Oct 2022 08:23:02 -0400

Hello,

zimoun <[email-masked]> writes:

> Hi Maxim,
>
> On ven., 07 oct. 2022 at 01:31, Maxim Cournoyer <[email-masked]> wrote:
>
>> +die()
>> +{
>> +    _err "${ERR}$*"
>> +}
>> +
>
> [...]
>
>> -            _err "${ERR}Unsupported CPU type: ${arch}"
>> -            exit 1
>> +            die "Unsupported CPU type: ${arch}"
>
> This new script using ’die’, does it exit correctly and return an
> appropriated exit code on failure?

Good catch, I had forgotten to include "exit 1" after the _err call in
die().

Fixed!

-- 
Thanks,
Maxim