Don't print resolution if detection fails
This commit is contained in:
parent
d0c85370b6
commit
4cf43fecc0
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -1290,7 +1290,8 @@ getresolution () {
|
|||
height=${height/ScreenHeight'='/}
|
||||
height=${height//[[:space:]]}
|
||||
|
||||
resolution="${width}x${height}"
|
||||
[ ! -z "$width" ] && \
|
||||
resolution="${width}x${height}"
|
||||
;;
|
||||
|
||||
"*")
|
||||
|
|
Loading…
Reference in a new issue