Mac OS X: Added uptime (Needs to be tested)
This commit is contained in:
parent
4fc82847db
commit
596952e0a2
1 changed files with 4 additions and 3 deletions
7
fetch.sh
7
fetch.sh
|
@ -252,12 +252,13 @@ getuptime () {
|
|||
;;
|
||||
|
||||
"Mac OS X")
|
||||
# TODO: Fix uptime for OS X
|
||||
uptime="Unknown"
|
||||
uptime=$(uptime | awk -F',' '{print $1}')
|
||||
uptime=${uptime# }
|
||||
uptime=${uptime/??:?? /}
|
||||
;;
|
||||
|
||||
"OpenBSD")
|
||||
uptime=$(uptime | awk -F',' '{ print $1 }')
|
||||
uptime=$(uptime | awk -F',' '{print $1}')
|
||||
uptime=${uptime# }
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue