From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iBMFFDJywV55fAAA0tVLHw (envelope-from ) for ; Sun, 17 May 2020 17:19:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uOC7DzJywV4DeQAAbx9fmQ (envelope-from ) for ; Sun, 17 May 2020 17:19:46 +0000 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 05E24940143 for ; Sun, 17 May 2020 17:19:46 +0000 (UTC) Received: from localhost ([::1]:42614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaMwy-0000lA-U8 for larch@yhetil.org; Sun, 17 May 2020 13:19:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaMwU-0008W8-IR for guix-patches@gnu.org; Sun, 17 May 2020 13:19:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaMwU-0004Pj-6r for guix-patches@gnu.org; Sun, 17 May 2020 13:19:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jaMwU-0007C8-31 for guix-patches@gnu.org; Sun, 17 May 2020 13:19:14 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40601] [PATCH 27/28] Fix variable use in guix_get_bin_list() Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 May 2020 17:19:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40601@debbugs.gnu.org Cc: Vincent Legoll Received: via spool by 40601-submit@debbugs.gnu.org id=B40601.158973592427470 (code B ref 40601); Sun, 17 May 2020 17:19:14 +0000 Received: (at 40601) by debbugs.gnu.org; 17 May 2020 17:18:44 +0000 Received: from localhost ([127.0.0.1]:44622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMvz-00078u-Iq for submit@debbugs.gnu.org; Sun, 17 May 2020 13:18:43 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMvT-00074s-I3 for 40601@debbugs.gnu.org; Sun, 17 May 2020 13:18:11 -0400 Received: by mail-wm1-f66.google.com with SMTP id w64so7743929wmg.4 for <40601@debbugs.gnu.org>; Sun, 17 May 2020 10:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aA+/4qneJv1BAegkxsojfBI+0JOCq6Mdfkm6K8sE+Xg=; b=I/T84K78y/r44hi6P3J9FcdNDN/cLr8n8BSIwCNJClGgrHP0YytPE6jmEcEAI1XaJh J7YS+r8W/yyyiPDN0Morzji5+ZXlr602WbkQWP7otcldNY+mpywLXDCvpry88NZrokHG pz9mLC1fA+MzoXoRQyoHQLtMNeJbeuox5nzldyUpnB3lL0SJGU4haLNAuyfnrwEiWFGt rQL0/b5XbeRY+vtzIJpYSBBkPJgO5COhy9V12mTz4Uf80af67LeqcbDTk9ASRyv0INMw mCm+i6pfek9EKTshugmJYYQVHf5f4MXl576xHTX9RVCSydgUn6Rd49xuWOTKPubNCSRo ArVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aA+/4qneJv1BAegkxsojfBI+0JOCq6Mdfkm6K8sE+Xg=; b=iFfWAiX/r0I3lAw56GY82tcGV/jfArFdiot7Ho4WDaFoNqKXJ3eTVa5MwZ/Wjuo8Lm OnKw1zgzCXnFziUwV9+SmA9rKpFdsk1zz2mQH5xAQ4QdR6n9XwvMMVSI2WeO6iWg2zwk 7LDW6vriPIhOosGpVxX8xF0qpdCC09HRPljY038lywYl6ax4c1cVJCilOt0w6G/8hl8K t6yW6QMZEIj8uqbcuKC80x0cY0QPcNw2htFo5J0YzXUCo0zE15E5QaM35MxtIGNLHOqO r3/Pqt7Iva2w09Xpt8aU89lCdXMDR9BT1q+K1jNZWbusVV/tkjKij7sKOleSi7W5I7q/ DZ9w== X-Gm-Message-State: AOAM533TEa3NzN637kmVZ9r8IDRh6XxfTjQ/K863C9f4lFMsEHsYMTQb JWevVrlUB+D2QAlkN0UAniMVHQoB X-Google-Smtp-Source: ABdhPJzZ6WvXbitAP+37sW97tDQhVjasmO71bBep1qu9mZWQo2d0XZJjyRHEl7CseYRenP3/rBIqbg== X-Received: by 2002:a05:600c:14c6:: with SMTP id i6mr14660165wmh.58.1589735885874; Sun, 17 May 2020 10:18:05 -0700 (PDT) Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1]) by smtp.gmail.com with ESMTPSA id v126sm13305048wma.9.2020.05.17.10.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 10:18:05 -0700 (PDT) From: Vincent Legoll Date: Sun, 17 May 2020 19:17:24 +0200 Message-Id: <20200517171725.732-27-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517171725.732-1-vincent.legoll@gmail.com> References: <20200517171725.732-1-vincent.legoll@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=I/T84K78; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.09 X-TUID: 5fQbgod4yGaY - Add missing curly-brackets - Add implicit array zero-indexing --- etc/guix-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 4ee350a155..be2fd74905 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -215,7 +215,7 @@ guix_get_bin_list() | sed -n -e 's/.*guix-binary-\([0-9.]*\)\..*.tar.xz.*/\1/p' \ | sort -Vu)") - latest_ver="$(echo "$bin_ver_ls" \ + latest_ver="$(echo "${bin_ver_ls[0]}" \ | grep -oE "([0-9]{1,2}\.){2}[0-9]{1,2}" \ | tail -n1)" @@ -229,7 +229,7 @@ guix_get_bin_list() fi # Use default to download according to the list and local ARCH_OS. - BIN_VER="$default_ver" + BIN_VER="${default_ver}" } guix_get_bin() -- 2.26.2