Fixed CPU output on OpenBSD

This commit is contained in:
Dylan 2016-03-26 09:40:35 +11:00
parent c4119421c3
commit 17cd68ba6b

View file

@ -864,6 +864,7 @@ getcpu () {
"OpenBSD"* | "FreeBSD"*)
# Get cpu name
cpu="$(sysctl -n hw.model)"
cpu=${cpu/[0-9]\.*}
cpu=${cpu/ @*}
cpu=${cpu// }
cpu=${cpu% }