blank check: Use [:space:], not [:blank:]
This is semantically more correct. Previously, in the most common case, pastes with only `\n` would result in `bad array subscript`. Fixes #31.
This commit is contained in:
parent
c5f101d996
commit
9efd96b405
|
@ -84,7 +84,7 @@ while sleep "${CLIPMENUD_SLEEP:-0.5}"; do
|
||||||
|
|
||||||
debug "Data after stripping: $data"
|
debug "Data after stripping: $data"
|
||||||
|
|
||||||
if [[ $data != *[^[:blank:]]* ]]; then
|
if [[ $data != *[^[:space:]]* ]]; then
|
||||||
debug "Skipping as clipboard is only blank"
|
debug "Skipping as clipboard is only blank"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue