diff --git a/fetch b/fetch index 4369cc1e..6bc3ec22 100755 --- a/fetch +++ b/fetch @@ -501,11 +501,16 @@ getuptime () { case "$os" in "Linux") case "$distro" in - "Puppy Linux"* | "Quirky Werewolf"* | "Precise Puppy"* | "openSUSE"*) + "Puppy Linux"* | "Quirky Werewolf"* | "Precise Puppy"*) uptime=$(uptime | awk -F ':[0-9]{2}+ |(, ){1}+' '{printf $2}') uptime=${uptime/ / } ;; + "openSUSE"*) + uptime=$(uptime | awk -F ':[0-9]{2}+[a-z][a-z] |(, ){1}+' '{printf $2}') + uptime=${uptime/ / } + ;; + *) uptime="$(uptime -p)" ;;