Skip to content

Commit 54c49a5

Browse files
committed
Quote values for -z test.
Otherwise if value is empty, you will get something like: /usr/local/share/tmux/plugins/tmux-logging/scripts/shared.sh: line 5: [: not: binary operator expected
1 parent dca202b commit 54c49a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ get_tmux_option() {
22
local option=$1
33
local default_value=$2
44
local option_value=$(tmux show-option -gqv "$option")
5-
if [ -z $option_value ]; then
5+
if [ -z "$option_value" ]; then
66
echo $default_value
77
else
88
echo $option_value

0 commit comments

Comments
 (0)