mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
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>
This commit is contained in:
parent
b4a1252b71
commit
1f4e878fc4
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue