Skip to content

Commit

Permalink
fix: escaping in options (#298)
Browse files Browse the repository at this point in the history
* fix: escaping in options

* chore: ignore shellcheck warning
  • Loading branch information
vdbe authored Aug 23, 2024
1 parent a71f3c0 commit 9b57c20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/tmux_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" ""
Expand Down

0 comments on commit 9b57c20

Please sign in to comment.