Commit ab1de702 authored by Dylan Araps's avatar Dylan Araps

Distro: Simplify shorthand for lsb_release

parent 192014ca
...@@ -131,10 +131,11 @@ getdistro() { ...@@ -131,10 +131,11 @@ getdistro() {
elif type -p lsb_release >/dev/null 2>&1; then elif type -p lsb_release >/dev/null 2>&1; then
case "$distro_shorthand" in case "$distro_shorthand" in
"on") distro="$(lsb_release -sir 2>/dev/null)" ;; "on") lsb_flags="-sir" ;;
"tiny") distro="$(lsb_release -si 2>/dev/null)" ;; "tiny") lsb_flags="-si" ;;
*) distro="$(lsb_release -sd 2>/dev/null)" ;; *) lsb_flags="-sd" ;;
esac esac
distro="$(lsb_release $lsb_flags 2>/dev/null)"
elif type -p guix >/dev/null 2>&1; then elif type -p guix >/dev/null 2>&1; then
distro="GuixSD" distro="GuixSD"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment