From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iF3CKpA2mmOQBQAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 21:48:16 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YIHLKpA2mmPAyQAA9RJhRA (envelope-from ) for ; Wed, 14 Dec 2022 21:48:16 +0100 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 aspmx2.migadu.com (Postfix) with ESMTPS id 67B13352A3 for ; Wed, 14 Dec 2022 21:48:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Yfc-0005ZT-Ta; Wed, 14 Dec 2022 15:48:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Yfa-0005YZ-2Z for guix-patches@gnu.org; Wed, 14 Dec 2022 15:48:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5YfZ-0001Cl-Qp for guix-patches@gnu.org; Wed, 14 Dec 2022 15:48:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5YfZ-0004Ea-MT for guix-patches@gnu.org; Wed, 14 Dec 2022 15:48:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60068] [PATCH v2 3/3] guix-install.sh: Directly exit in case of errors in chk_require. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Dec 2022 20:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60068 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60068@debbugs.gnu.org Cc: me@tobias.gr, Maxim Cournoyer Received: via spool by 60068-submit@debbugs.gnu.org id=B60068.167105082516230 (code B ref 60068); Wed, 14 Dec 2022 20:48:01 +0000 Received: (at 60068) by debbugs.gnu.org; 14 Dec 2022 20:47:05 +0000 Received: from localhost ([127.0.0.1]:41792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Yef-0004Di-HT for submit@debbugs.gnu.org; Wed, 14 Dec 2022 15:47:05 -0500 Received: from mail-vk1-f175.google.com ([209.85.221.175]:43844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Yec-0004Co-0I for 60068@debbugs.gnu.org; Wed, 14 Dec 2022 15:47:02 -0500 Received: by mail-vk1-f175.google.com with SMTP id g137so3743227vke.10 for <60068@debbugs.gnu.org>; Wed, 14 Dec 2022 12:47:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=45V4zygLPUbUUHmAG3m2+7+BRyv6ncJsMrXYIl7BXM4=; b=PZs+djoCMCmLZZb3IUHAwrIOdXIJ90y+uAWFfuuALzg3u6cwMORIY+pZIljB+Sid1q X9iN50cFHM6uWr84xtAOvGoQ8yynfGAIMHwvVDqNCC7Xwnu2ntgd+MAqJCPVMdrZ4dHR rMI3IJJHSEJbIYrb3V9IDdFTcV7rvcWNV/OhVFeyp/+nhWte1Q37jNz0L93QylxuFiIo IENN457vX3ppzv7aXTnc1AXpnlTnvC9pVFg+Lpzj5naH7JIQxcEPBbVv/M1KW2v1P5d3 RuhKy+SVmtDhFoDuKm+hs8Vw5H1ekz2lqgr7HWfqD7XpRoWXMMmIMp2CSjXZbFmRFJOy XcJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=45V4zygLPUbUUHmAG3m2+7+BRyv6ncJsMrXYIl7BXM4=; b=SGGRiTIUfhv2dNkaoGKG98EN63MfvCDlGwJJKdUPu4OnY/rX0q6nMEaRfcQfDAJOSJ EWe0WfS6kpyV5ugKoTv41vni/Sxr8c4opmMrtxj7hpENpVEJe+w1Ze62jWgMFZsMy6Wt 9fDWjDjav9fbRGXcJno6n2awZbUL6VQmdE1QhBWhvUhMwyORN1xXa2lWzlOZG1wGXGcZ jVNI/Qo0K1/SaS3rPCua3q6NKDgMWDx0uPOArAjMXog+InCnxbtARHMOFSSF+mMSESRw /vpchpo3sdxbmry35T9BiV2YMD4vKb2kg3ysy/3JuK7jYfhLfb6s9cJjrTk4j3ytTgn2 XkWA== X-Gm-Message-State: ANoB5pkO9zJgb3pp6EAEhMr0hR5OV1/l77futnIGBRxsNHY9QDDUlaYe OosSL8g8hxbX83azM6BtRFdCLBRsK+33XQ== X-Google-Smtp-Source: AA0mqf5GCbN7rsc4OPyW9+4Pj/cv8X8B8CyDk/CyDy5K2+CP5gQ/D0Q+OdF5+K9/wOgs9V/5qgnXfg== X-Received: by 2002:a1f:9f42:0:b0:3bc:d00d:82e6 with SMTP id i63-20020a1f9f42000000b003bcd00d82e6mr15732643vke.2.1671050816393; Wed, 14 Dec 2022 12:46:56 -0800 (PST) Received: from localhost.localdomain ([2607:fad8:4:3::1006]) by smtp.gmail.com with ESMTPSA id p13-20020a05620a112d00b006f87d28ea3asm10192676qkk.54.2022.12.14.12.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 12:46:56 -0800 (PST) From: Maxim Cournoyer Date: Wed, 14 Dec 2022 15:46:40 -0500 Message-Id: <20221214204640.16879-3-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221214204640.16879-1-maxim.cournoyer@gmail.com> References: <20221214204640.16879-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671050896; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=45V4zygLPUbUUHmAG3m2+7+BRyv6ncJsMrXYIl7BXM4=; b=kvEsIvC+wjpz+ymIH+DYf0ywPMGkYSr1IFZcuhwJ4NjgLKUgobEvfaIfhPIMkNyeBK945w DmPUEPsR+niLBArevUeJ184ePU/TCyPj7a/Lsmii7FYExhzvpaBbM8CjVicBUYC8GO8t62 l0D+5zJd+la3oniB2g4htzcjByCCr+tPr7nr+RRRPxQ+zdPHmcHgXk2RiBM/5hopUEAbgk y7JiUJj8USwpzYGVjoiFXN5WxgHHr76UGqIH7ToGy/qsC/T1dUH5f11ulToRPF5HHbNw9q 1h/U7Ef51s4py+dSYMOjYG3VWVmX+rrn+502T1IPHzBrSGgwBWAKcLeGxW1ZrA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=PZs+djoC; spf=pass (aspmx2.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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671050896; a=rsa-sha256; cv=none; b=sKwsF8VBJXOI2MlXHz33IDaSDJ2IFO+HegytiEINi7i6hPF/0LCemS/7hlGTiiRVd8cZnu gKI0kh6RFCLWozpfOkhMMcQDkJBu0YYlJMxGd/0x+6CroDF0mstLgw1BfIN5dmRwPB2Djq jrFaVGFO0+5ipIRPgLxcrPyjI6enikg4x8D2jadtebnjiFhbjNNRXWPDGW1gjQ73Mlsb69 LBRgzltGK/6RJMjA93IHM9j+gSJpx7gnQgANENyaGm/vLCT4QyKrseXtCbXw2bh0Lrj0nX RmojtOWZXRWMLGWJkVnqTVza+fSxxu9NT/IpxFSlavV3YyFfWr4igcmdEegw6g== X-Migadu-Spam-Score: -1.37 X-Spam-Score: -1.37 X-Migadu-Queue-Id: 67B13352A3 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=PZs+djoC; spf=pass (aspmx2.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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: OJlwrCrao+26 * etc/guix-install.sh (chk_require): Directly exit in case of errors in chk_require, instead of relying on 'set -e'. --- etc/guix-install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 62d85e765a..ea10f35250 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -137,10 +137,8 @@ chk_require() command -v "$c" &>/dev/null || warn+=("$c") done - [ "${#warn}" -ne 0 ] && - { _err "${ERR}Missing commands: ${warn[*]}."; - return 1; } - + [ "${#warn}" -ne 0 ] && die "Missing commands: ${warn[*]}." + _msg "${PAS}verification of required commands completed" } -- 2.38.1