From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OJRoOdXlP2PjpQAAbAwnHQ (envelope-from ) for ; Fri, 07 Oct 2022 10:39:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6DxWOdXlP2NJYwEAauVa8A (envelope-from ) for ; Fri, 07 Oct 2022 10:39:49 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CBDE910824 for ; Fri, 7 Oct 2022 10:39:49 +0200 (CEST) Received: from localhost ([::1]:41976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogitY-0007vU-G9 for larch@yhetil.org; Fri, 07 Oct 2022 04:39:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogipw-0006BJ-Hi for guix-patches@gnu.org; Fri, 07 Oct 2022 04:36:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogipu-0001DB-Nf for guix-patches@gnu.org; Fri, 07 Oct 2022 04:36:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogipu-0006a3-Im for guix-patches@gnu.org; Fri, 07 Oct 2022 04:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58345] [PATCH 2/3] guix-install.sh: Introduce 'die' utility function. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Oct 2022 08:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58345 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer , 58345@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 58345-submit@debbugs.gnu.org id=B58345.166513170825227 (code B ref 58345); Fri, 07 Oct 2022 08:36:02 +0000 Received: (at 58345) by debbugs.gnu.org; 7 Oct 2022 08:35:08 +0000 Received: from localhost ([127.0.0.1]:34295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogip0-0006Yo-Tj for submit@debbugs.gnu.org; Fri, 07 Oct 2022 04:35:08 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:41586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogioj-0006XM-Qb for 58345@debbugs.gnu.org; Fri, 07 Oct 2022 04:35:05 -0400 Received: by mail-wr1-f47.google.com with SMTP id bu30so6158303wrb.8 for <58345@debbugs.gnu.org>; Fri, 07 Oct 2022 01:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=7UxJAuSDvvQJ8SF5yloXk6yJ1/PsQDYjEgTqRsk7QlA=; b=Q6LO3h5ecZptD+WMFJmUTviHAvBeuSw3p04EeeNAXvBBDsnZiRXb+pn79y6nUAezAp gY6GZarELnM2V7quU71q7cS+L8A6QUTbAutAXTe4TWFW58TqqPm3CaZ4YxC52wwsUWLY TirlM7W4L931wVir9h7grVADnfU4snTpPfckakWM+l+9YhKU3w2sVFHvMgNuSmU0EtBR Kn3KfRvft2jrlislM9GMrx1dLrmlW2a1/G7pSfZv9zXRFl/B9I4jzxeIWgL4f8ldDmgK l0CLmKigwZ2rtObWIQgwSkNkZniEl6Q8sx/PA99CYpkakW1untUQGbRmWEFyFCTLh7mR gY8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=7UxJAuSDvvQJ8SF5yloXk6yJ1/PsQDYjEgTqRsk7QlA=; b=NbPSA0WFY5LctS+BaaPcsis+Gdjx6fmIuoC89+oS36PdZVijxyRuBIoQoOU1hRaoFN qvzTGnMDBmpjqNzzRfS/OtaglicfJSZER2p+QWqdQ9cQwzwCHmCvlE5uSNl+4CECUG+4 86QCqS3zPY6eLqYPrwg8GgzcIvdwUxvvPWTpVb6fjJWN6JhoBQxW8xAUPq5pgzSzZvuj E7uADuWznDvtTYRRdSY3kGTVD2liGBFJEZsGx614betSvym1OlxlcjMYoUCNs3xmvCBH bBo5rUMrbSqas1fHQZwjN6nQR2N/r/vZ7Oh0rbdOJ8X1R1mXPk7fQsr1tuOIUav/zjRD 6BAQ== X-Gm-Message-State: ACrzQf1S6AHA5iBtNBDnap8BTOEvKNTPVjI1mmuqyzULCcDQfj+BfYb/ wznUpdNOtIgrOU8+sBi1tZwmGqOKqSE= X-Google-Smtp-Source: AMsMyM4T38mwVRC2Zdvmbba0IFzvLb9x8aEvEstZu8oXZPDRErXfEJO2gL8mxBYVEPp3qZqVUSi4zg== X-Received: by 2002:a05:6000:52:b0:22e:5894:e212 with SMTP id k18-20020a056000005200b0022e5894e212mr2351494wrx.266.1665131684182; Fri, 07 Oct 2022 01:34:44 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id a8-20020a1cf008000000b003a6a3595edasm1555226wmb.27.2022.10.07.01.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 01:34:43 -0700 (PDT) From: zimoun In-Reply-To: <20221007053200.21177-2-maxim.cournoyer@gmail.com> References: <20221007053200.21177-1-maxim.cournoyer@gmail.com> <20221007053200.21177-2-maxim.cournoyer@gmail.com> Date: Fri, 07 Oct 2022 10:30:47 +0200 Message-ID: <87v8owt4qw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665131989; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7UxJAuSDvvQJ8SF5yloXk6yJ1/PsQDYjEgTqRsk7QlA=; b=NHmoiCtJCf0+1kIwaiPGheWgpJ7SmBqmh3uZTmca0bSJJTH88nU4vdslNiwWgBuJQhV6BD b1zcLJg1xRIBeclXw/r8evH636AjaMxhplhOZOfzkjJN/mkLT2Rc3T3ULkww5bqTADtP5a uTWTcNZeMAB1wEap4+HasTLwYHX/4+ISh1V43qWXUyBj57IfYFR9/YPtnqV3cSFrnZstut DqQU0BEdeA3WjiwTFMcfHlElyNHhLESKwmpjO6Bmdh56XRPvYj+7Dnp/2biVglvDV8nyhe Fqw5bc+ZR4srN2pbirGa+Ehj/Zl4eTiW4WlV4f+K0W/cUVZIPBQp4XZ0jUVAoA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665131989; a=rsa-sha256; cv=none; b=BBq5lYmm4KLlf/EjxYvCB1t7BSjSzVn73Pf/lhNz3rIW8myEL+nQVeQ0sV6N3aIPpqfilL gtsUlYOxWpRGFlBMqtZiW9lZ44fyYwvPgT18gEx73qKX7KpOuqnJLf86EtvrXKJ+prdUI0 5zQQW7cD3M38VDwxZbV/H80GEwHMtlj9rTSD064AyS8RHoGi1WPZG3uqymIbf+12u5d9Az YDFYgN7BcpMPk0uwb++6AdwCmTYOGhTl/w3NQ9mWy8AutSUAZ7Fmr5cVHR/0eIMOH48ZHz LRxcry8RN7iaml2o4PY4u4sGhMcfxp2I6x7po8+3QX6NM3d6MZwKK6Iazeomiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Q6LO3h5e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Q6LO3h5e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CBDE910824 X-Spam-Score: 7.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: XIi65JpfZuv7 Hi Maxim, On ven., 07 oct. 2022 at 01:31, Maxim Cournoyer = wrote: > +die() > +{ > + _err "${ERR}$*" > +} > + [...] > - _err "${ERR}Unsupported CPU type: ${arch}" > - exit 1 > + die "Unsupported CPU type: ${arch}" This new script using =E2=80=99die=E2=80=99, does it exit correctly and ret= urn an appropriated exit code on failure? Cheers, simon