fix too many arguments in utils.sh

This commit is contained in:
Sabato Luca Guadagno 2021-07-19 08:19:41 +02:00
parent 90c2748a39
commit 58619bd3c6

View file

@ -4,7 +4,7 @@ get_tmux_option() {
local option=$1 local option=$1
local default_value=$2 local default_value=$2
local option_value=$(tmux show-option -gqv "$option") local option_value=$(tmux show-option -gqv "$option")
if [ -z $option_value ]; then if [ -z "$option_value" ]; then
echo $default_value echo $default_value
else else
echo $option_value echo $option_value