diff --git a/neofetch b/neofetch index a95a14b8..988a32a6 100755 --- a/neofetch +++ b/neofetch @@ -554,9 +554,9 @@ getkernel() { getuptime () { case "$os" in - "Linux") + "Linux" | "Windows") case "$distro" in - "Puppy Linux"* | "Quirky Werewolf"* | "Precise Puppy"* | "Alpine Linux"*) + *"Puppy"* | "Quirky Werewolf"* | "Alpine Linux"* | "Windows"*) uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}') uptime=${uptime/ / } ;; @@ -610,11 +610,6 @@ getuptime () { uptime="up $uptime" ;; - "Windows") - uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}') - uptime=${uptime/ / } - ;; - *) uptime="Unknown" ;;