summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/chdt2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chdt b/bin/chdt
index 3bd503a..a6e1e5d 100755
--- a/bin/chdt
+++ b/bin/chdt
@@ -35,7 +35,7 @@ get_desktop()
dt=$(wmctrl -d | sed -n '/^[0-9][0-9]* *\* /{ s/ *\* .*$//; p; q; };')
case "${dt}" in
- *[!0-9]*)
+ *[!0-9]* | '')
err 'Failed to get current desktop number'
return 1
;;