summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-05-04 12:03:24 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-05-04 12:03:24 (EDT)
commit8ebdb567f49145f1137016a5a1f67be8c50c45ca (patch)
treef89e9cf314e40f203a9cc53fb62eb80b4893bc58 /bin
parent4db2b0bdbd259cbf8407aff5f6f1b35e0f4e4819 (diff)
downloadfluxbox-8ebdb567f49145f1137016a5a1f67be8c50c45ca.zip
fluxbox-8ebdb567f49145f1137016a5a1f67be8c50c45ca.tar.gz
fluxbox-8ebdb567f49145f1137016a5a1f67be8c50c45ca.tar.bz2
bin/chdt: Improve current desktop number validation
Diffstat (limited to 'bin')
-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
;;