fix: escaping in options (#298)
* fix: escaping in options * chore: ignore shellcheck warning
This commit is contained in:
parent
a71f3c039b
commit
9b57c20020
1 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ get_tmux_batch_option() {
|
||||||
for option_index in "${!tmux_batch_options[@]}"; do
|
for option_index in "${!tmux_batch_options[@]}"; do
|
||||||
IFS="" read -r read_option read_value <<<"${tmux_batch_options[$option_index]}"
|
IFS="" read -r read_option read_value <<<"${tmux_batch_options[$option_index]}"
|
||||||
if [[ "$read_option" == "$option" ]]; then
|
if [[ "$read_option" == "$option" ]]; then
|
||||||
echo -e "$read_value"
|
echo "$read_value"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -117,8 +117,8 @@ set_tmux_batch_option() {
|
||||||
run_tmux_batch_commands() {
|
run_tmux_batch_commands() {
|
||||||
local temp
|
local temp
|
||||||
|
|
||||||
# shellcheck disable=SC2048,SC2086
|
# shellcheck disable=SC2048,SC2086,SC2162
|
||||||
while IFS=' ' read -r option value; do
|
while IFS=' ' read option value; do
|
||||||
if [ -n "$value" ]; then
|
if [ -n "$value" ]; then
|
||||||
if [ "$value" = "null" ]; then
|
if [ "$value" = "null" ]; then
|
||||||
set_tmux_batch_option "$option" ""
|
set_tmux_batch_option "$option" ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue