Replace non-POSIX -o test flag with a double pipe

This commit is contained in:
Frank LENORMAND 2016-03-15 13:51:19 +02:00
parent 262de38c3d
commit 3b2fd831f4

View File

@ -14,7 +14,7 @@ def comment-selection -docstring "Comment/uncomment the current selection" %{
readonly opening=$(exec_proof "${kak_opt_comment_selection_chars%%:*}")
readonly closing=$(exec_proof "${kak_opt_comment_selection_chars##*:}")
if [ -z "${opening}" -o -z "${closing}" ]; then
if [ -z "${opening}" ] || [ -z "${closing}" ]; then
printf %s "The \`comment_selection_chars\` variable is empty, couldn't comment the selection" >&2
exit
fi