revert Windows support, needs more testing

This commit is contained in:
dylan araps 2016-01-05 12:16:19 +11:00
parent f289ccd85d
commit 4e3322448d
1 changed files with 1 additions and 23 deletions

View File

@ -205,10 +205,6 @@ case "$(uname)" in
"OpenBSD")
os="OpenBSD"
;;
"CYGWIN"*)
os="Windows"
;;
esac
# Get Distro
@ -232,15 +228,6 @@ getdistro () {
distro="OpenBSD"
;;
"Windows")
# TODO: Detect XP/7
if [ "$(wmic os get version | grep -o '^10')" ]; then
distro="Windows 10"
else
distro="Windows"
fi
;;
*)
distro="Unknown"
;;
@ -304,10 +291,6 @@ getuptime () {
uptime=${uptime# }
;;
"Windows")
uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}')
;;
*)
uptime="Unknown"
;;
@ -361,10 +344,6 @@ getpackages () {
packages=$(pkg_info | wc -l)
;;
"Windows"*)
packages=$(cygcheck -cd | wc -l)
;;
*)
packages="Unknown"
;;
@ -884,7 +863,7 @@ printinfo () {
[ "$images" == "on" ] && getimage
# Clear the terminal and hide the cursor
printf "\e[?25l\033c\e[?25l"
printf "\033c\e[?25l"
# Disable line wrap
[ $line_wrap == "off" ] && printf '\e[?7l'
@ -908,4 +887,3 @@ printf "\e[$(tput lines)H\e[1A\e[?25h"
# }}}