Fixed CPU output on OpenBSD

This commit is contained in:
Dylan 2016-03-26 09:40:35 +11:00
parent c4119421c3
commit 17cd68ba6b
1 changed files with 1 additions and 0 deletions

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% }