Commit 3c5ac7d9 authored by Dylan Araps's avatar Dylan Araps

Distro: Cleanup

parent 4f604c53
......@@ -44,8 +44,7 @@ get_distro() {
case "$os" in
"Linux" | "GNU")
if grep -q -F 'Microsoft' /proc/version || \
grep -q -F 'Microsoft' /proc/sys/kernel/osrelease; then
if [[ "$(< /proc/version)" =~ "Microsoft" || "$(< /proc/sys/kernel/osrelease)" =~ "Microsoft" ]]; then
case "$distro_shorthand" in
"on") distro="$(lsb_release -sir) [Windows 10]" ;;
"tiny") distro="Windows 10" ;;
......
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