[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#40601] [PATCH 27/28] Fix variable use in guix_get_bin_list()
From: |
Vincent Legoll |
Subject: |
[bug#40601] [PATCH 27/28] Fix variable use in guix_get_bin_list() |
Date: |
Sun, 17 May 2020 19:17:24 +0200 |
- 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
- [bug#40601] [PATCH 21/28] Remove unused variable, (continued)
- [bug#40601] [PATCH 21/28] Remove unused variable, Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 24/28] Remove some "[[" bashisms, Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 11/28] guix-install.sh: Use a variable for GPG key URL., Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 23/28] Remove $UID bashism, Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 09/28] guix-install.sh: Fix requirements., Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 17/28] fix variable quoting in sys_make_guix_available, Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 16/28] non-interactive mode, usage, Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 22/28] Remove local bashisms, Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 26/28] Add _debug_func() helper function, Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 25/28] Remove unused variable set by "read", Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 27/28] Fix variable use in guix_get_bin_list(),
Vincent Legoll <=
- [bug#40601] [PATCH 28/28] Remove "[[" bashisms in chk_init_sys(), Vincent Legoll, 2020/05/17
- [bug#40601] [PATCH 01/28] nix/local.mk: Add missing comment to sysvinit section., Tobias Geerinckx-Rice, 2020/05/23