Remove redundant shellcheck switches
This commit is contained in:
parent
7655bc56a3
commit
85358fb674
4
rowbot
4
rowbot
|
@ -1070,8 +1070,6 @@ while net_recv line; do
|
||||||
while [[ $line ]]; do
|
while [[ $line ]]; do
|
||||||
if [[ ${line:0:1} = : ]]; then
|
if [[ ${line:0:1} = : ]]; then
|
||||||
msg_args+=( "${line:1}" ) msg[words]=yes line=
|
msg_args+=( "${line:1}" ) msg[words]=yes line=
|
||||||
# Code using this array will be implemented later.
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
read -ra msg_words <<< "${msg_args[-1]}"
|
read -ra msg_words <<< "${msg_args[-1]}"
|
||||||
log_debug "parsed final argument %s" "${msg_args[-1]}"
|
log_debug "parsed final argument %s" "${msg_args[-1]}"
|
||||||
else
|
else
|
||||||
|
@ -1114,8 +1112,6 @@ while net_recv line; do
|
||||||
action=${msg_args[-1]#"${config[trigger]}"} action=${action%% *}
|
action=${msg_args[-1]#"${config[trigger]}"} action=${action%% *}
|
||||||
action_line=${msg_args[-1]#"$trigger$action"}
|
action_line=${msg_args[-1]#"$trigger$action"}
|
||||||
read -r action_line <<< "$action_line"
|
read -r action_line <<< "$action_line"
|
||||||
# This variable will be used in later code.
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
read -ra action_args <<< "$action_line"
|
read -ra action_args <<< "$action_line"
|
||||||
plugin_run "$action"
|
plugin_run "$action"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue