Merge pull request #3 from dylanaraps/master

Distro [GuixSD]: Add version and shorthand option
This commit is contained in:
Takeya Yuki 2017-05-20 14:39:39 +09:00 committed by GitHub
commit 253a1264f8
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,10 @@ get_distro() {
distro="$(lsb_release $lsb_flags)"
elif type -p guix >/dev/null; then
distro="GuixSD"
case "$distro_shorthand" in
"on" | "tiny") distro="GuixSD" ;;
*) distro="GuixSD $(guix system -V | awk 'NR==1{printf $5}')"
esac
elif type -p crux >/dev/null; then
distro="$(crux)"