aboutsummaryrefslogtreecommitdiff
path: root/etc/guix-install.sh
diff options
context:
space:
mode:
authorVincent Legoll <vincent.legoll@gmail.com>2020-05-31 22:42:56 +0200
committerChristopher Baines <mail@cbaines.net>2020-12-18 12:21:15 +0000
commit1f4e878fc477940e230b461b7b62d5a96320f4dc (patch)
tree07008e65e5ed081a4552c7e738709cebd3ecfab6 /etc/guix-install.sh
parentb4a1252b71ceb3ec0de586154292f753c5de2277 (diff)
downloadguix-1f4e878fc477940e230b461b7b62d5a96320f4dc.tar
guix-1f4e878fc477940e230b461b7b62d5a96320f4dc.tar.gz
guix-install.sh: Adjust variable use in guix_get_bin_list().
* etc/guix-install.sh (guix_get_bin_list)[BIN_VER]: Add curly-brackets, [latest_ver]: Likewise & add explicit array zero-indexing. Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'etc/guix-install.sh')
-rwxr-xr-xetc/guix-install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 4bfd4a05fb..46911ab03c 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -233,7 +233,7 @@ guix_get_bin_list()
| sed -n -e 's/.*guix-binary-\([0-9.]*[a-z0-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}[a-z0-9]*" \
| tail -n1)"
@@ -247,7 +247,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()