CPU: Remove duplicate substitutions
This commit is contained in:
parent
dc08df12ac
commit
4413c0f210
1 changed files with 2 additions and 3 deletions
5
neofetch
5
neofetch
|
@ -899,10 +899,9 @@ get_cpu() {
|
||||||
"speed") cpu="${cpu#*@ }" ;;
|
"speed") cpu="${cpu#*@ }" ;;
|
||||||
|
|
||||||
"on" | "tiny")
|
"on" | "tiny")
|
||||||
cpu="${cpu/Intel }"
|
|
||||||
cpu="${cpu/Core }"
|
|
||||||
cpu="${cpu/Core? Duo }"
|
|
||||||
cpu="${cpu/AMD }"
|
cpu="${cpu/AMD }"
|
||||||
|
cpu="${cpu/Intel }"
|
||||||
|
cpu="${cpu/Core? Duo }"
|
||||||
|
|
||||||
[[ "$cpu_shorthand" == "tiny" ]] && cpu="${cpu/@*}"
|
[[ "$cpu_shorthand" == "tiny" ]] && cpu="${cpu/@*}"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue