Only print cpu cores if they're found
This commit is contained in:
parent
5d7ed48661
commit
2984687018
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -923,7 +923,7 @@ getcpu () {
|
|||
cpu=${cpu// with Radeon HD Graphics}
|
||||
|
||||
# Add cpu cores to output
|
||||
[ "$cpu_cores" == "on" ] && \
|
||||
[ "$cpu_cores" == "on" ] && [ ! -z "$cores" ] && \
|
||||
cpu=${cpu/@/\(${cores}\) @}
|
||||
|
||||
# Make the output of cpu shorter
|
||||
|
|
Loading…
Reference in a new issue