distro: speed up guix lookup (#1452)

This commit is contained in:
Erick Cafferata 2020-05-01 14:25:05 -05:00 committed by GitHub
parent c85509f838
commit a1f80c3a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1031,7 +1031,7 @@ get_distro() {
elif type -p guix >/dev/null; then elif type -p guix >/dev/null; then
case $distro_shorthand in case $distro_shorthand in
on|tiny) distro="Guix System" ;; on|tiny) distro="Guix System" ;;
*) distro="Guix System $(guix system -V | awk 'NR==1{printf $5}')" *) distro="Guix System $(guix -V | awk 'NR==1{printf $4}')"
esac esac
# Display whether using '-current' or '-release' on OpenBSD. # Display whether using '-current' or '-release' on OpenBSD.