Added distro detection

This commit is contained in:
Muhammad Herdiansyah 2016-08-29 21:36:57 +07:00
parent 06a3f809cc
commit c0b53c0606

View file

@ -121,6 +121,9 @@ getdistro() {
if type -p lsb_release >/dev/null 2>&1; then
distro="$(lsb_release -d 2>/dev/null | awk -F ':' '/Description/ {printf $2}')"
elif type -p guix >/dev/null 2>&1; then
distro="GuixSD"
elif type -p crux >/dev/null 2>&1; then
distro="$(crux)"