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
1 changed files with 2 additions and 1 deletions

View File

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