me
/
guix
Archived
1
0
Fork 0

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>
master
Vincent Legoll 2020-05-31 22:42:56 +02:00 committed by Christopher Baines
parent b4a1252b71
commit 1f4e878fc4
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ guix_get_bin_list()
| sed -n -e 's/.*guix-binary-\([0-9.]*[a-z0-9]*\)\..*.tar.xz.*/\1/p' \ | sed -n -e 's/.*guix-binary-\([0-9.]*[a-z0-9]*\)\..*.tar.xz.*/\1/p' \
| sort -Vu)") | 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]*" \ | grep -oE "([0-9]{1,2}\.){2}[0-9]{1,2}[a-z0-9]*" \
| tail -n1)" | tail -n1)"
@ -247,7 +247,7 @@ guix_get_bin_list()
fi fi
# Use default to download according to the list and local ARCH_OS. # Use default to download according to the list and local ARCH_OS.
BIN_VER="$default_ver" BIN_VER="${default_ver}"
} }
guix_get_bin() guix_get_bin()