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
1
neofetch
1
neofetch
|
@ -1290,6 +1290,7 @@ getresolution () {
|
||||||
height=${height/ScreenHeight'='/}
|
height=${height/ScreenHeight'='/}
|
||||||
height=${height//[[:space:]]}
|
height=${height//[[:space:]]}
|
||||||
|
|
||||||
|
[ ! -z "$width" ] && \
|
||||||
resolution="${width}x${height}"
|
resolution="${width}x${height}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue