From 9b57c2002081fff8af16b878f1369d46788c0409 Mon Sep 17 00:00:00 2001 From: vdbe <44153531+vdbe@users.noreply.github.com> Date: Fri, 23 Aug 2024 09:13:18 +0000 Subject: [PATCH] fix: escaping in options (#298) * fix: escaping in options * chore: ignore shellcheck warning --- utils/tmux_utils.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/tmux_utils.sh b/utils/tmux_utils.sh index fadff8f..15a890b 100644 --- a/utils/tmux_utils.sh +++ b/utils/tmux_utils.sh @@ -66,7 +66,7 @@ get_tmux_batch_option() { for option_index in "${!tmux_batch_options[@]}"; do IFS="" read -r read_option read_value <<<"${tmux_batch_options[$option_index]}" if [[ "$read_option" == "$option" ]]; then - echo -e "$read_value" + echo "$read_value" return fi done @@ -117,8 +117,8 @@ set_tmux_batch_option() { run_tmux_batch_commands() { local temp - # shellcheck disable=SC2048,SC2086 - while IFS=' ' read -r option value; do + # shellcheck disable=SC2048,SC2086,SC2162 + while IFS=' ' read option value; do if [ -n "$value" ]; then if [ "$value" = "null" ]; then set_tmux_batch_option "$option" ""