Mac OS X: Added uptime (Needs to be tested)
This commit is contained in:
parent
4fc82847db
commit
596952e0a2
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# }
|
||||
;;
|
||||
|
||||
|
|
Reference in New Issue