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")
|
"Mac OS X")
|
||||||
# TODO: Fix uptime for OS X
|
uptime=$(uptime | awk -F',' '{print $1}')
|
||||||
uptime="Unknown"
|
uptime=${uptime# }
|
||||||
|
uptime=${uptime/??:?? /}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSD")
|
"OpenBSD")
|
||||||
uptime=$(uptime | awk -F',' '{ print $1 }')
|
uptime=$(uptime | awk -F',' '{print $1}')
|
||||||
uptime=${uptime# }
|
uptime=${uptime# }
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Reference in New Issue