[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#40601] [PATCH 6/7] guix-install.sh: Fix variable uses in guix_get_b
From: |
Vincent Legoll |
Subject: |
[bug#40601] [PATCH 6/7] guix-install.sh: Fix variable uses in guix_get_bin_list(). |
Date: |
Sun, 31 May 2020 22:42:56 +0200 |
* etc/guix-install.sh (guix_get_bin_list)[BIN_VER]: Add missing curly-brackets,
[latest_ver]: Likewise & add explicit 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 0e6e6842a1..7d635c2c38 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -210,7 +210,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 -oP "([0-9]{1,2}\.){2}[0-9]{1,2}" \
| tail -n1)"
@@ -224,7 +224,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
- [bug#40601] [PATCH 1/7] guix-install.sh: Remove "[[" bashisms in chk_init_sys()., Vincent Legoll, 2020/05/31
- [bug#40601] [PATCH 3/7] guix-install.sh: Fix requirements., Vincent Legoll, 2020/05/31
- [bug#40601] [PATCH 4/7] guix-install.sh: trivial whitespace fix., Vincent Legoll, 2020/05/31
- [bug#40601] [PATCH 5/7] guix-install.sh: Add variable quoting in sys_make_guix_available., Vincent Legoll, 2020/05/31
- [bug#40601] [PATCH 6/7] guix-install.sh: Fix variable uses in guix_get_bin_list().,
Vincent Legoll <=
- [bug#40601] [PATCH 7/7] guix-install.sh: Add missing variable quoting & curly-bracketing in guix_get_bin()., Vincent Legoll, 2020/05/31
- [bug#40601] [PATCH 2/7] guix-install.sh: Remove $UID bashism., Vincent Legoll, 2020/05/31