CPU: Remove duplicate substitutions

This commit is contained in:
Dylan Araps 2016-12-14 11:57:02 +11:00
parent dc08df12ac
commit 4413c0f210

View file

@ -899,10 +899,9 @@ get_cpu() {
"speed") cpu="${cpu#*@ }" ;;
"on" | "tiny")
cpu="${cpu/Intel }"
cpu="${cpu/Core }"
cpu="${cpu/Core? Duo }"
cpu="${cpu/AMD }"
cpu="${cpu/Intel }"
cpu="${cpu/Core? Duo }"
[[ "$cpu_shorthand" == "tiny" ]] && cpu="${cpu/@*}"
;;