[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58345] [PATCH 2/3] guix-install.sh: Introduce 'die' utility functio
From: |
zimoun |
Subject: |
[bug#58345] [PATCH 2/3] guix-install.sh: Introduce 'die' utility function. |
Date: |
Fri, 07 Oct 2022 10:30:47 +0200 |
Hi Maxim,
On ven., 07 oct. 2022 at 01:31, Maxim Cournoyer <maxim.cournoyer@gmail.com>
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?
Cheers,
simon