Don't print resolution if detection fails

This commit is contained in:
Dylan 2016-03-25 22:20:19 +11:00
parent d0c85370b6
commit 4cf43fecc0

View file

@ -1290,7 +1290,8 @@ getresolution () {
height=${height/ScreenHeight'='/}
height=${height//[[:space:]]}
resolution="${width}x${height}"
[ ! -z "$width" ] && \
resolution="${width}x${height}"
;;
"*")