Distro: Cleanup

This commit is contained in:
Dylan Araps 2016-12-02 09:33:46 +11:00
parent 4f604c53f9
commit 3c5ac7d9ee
1 changed files with 1 additions and 2 deletions

View File

@ -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" ;;