diff options
author | P. 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) |
commit | 8ebdb567f49145f1137016a5a1f67be8c50c45ca (patch) | |
tree | f89e9cf314e40f203a9cc53fb62eb80b4893bc58 /bin | |
parent | 4db2b0bdbd259cbf8407aff5f6f1b35e0f4e4819 (diff) | |
download | fluxbox-8ebdb567f49145f1137016a5a1f67be8c50c45ca.zip fluxbox-8ebdb567f49145f1137016a5a1f67be8c50c45ca.tar.gz fluxbox-8ebdb567f49145f1137016a5a1f67be8c50c45ca.tar.bz2 |
bin/chdt: Improve current desktop number validation
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chdt | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ;; |