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