Temporarily quiet some shellcheck warnings

This commit is contained in:
Nick Chambers 2021-06-20 00:14:23 -05:00
parent e976de6b63
commit 2863349c8f
1 changed files with 5 additions and 0 deletions

5
rowbot
View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# shellcheck disable=SC2154
###
# switch toggler
@ -818,6 +819,9 @@ while recv line; do
fi
if [[ ${cmd^^} = PRIVMSG ]]; then
# Since it is assigning the last index of the array, it will always be a
# single string.
# shellcheck disable=SC2124
to=${args[0]} last=${args[@]:(-1)}
if [[ ${to:0:1} = \# ]]; then
@ -827,6 +831,7 @@ while recv line; do
if [[ $last = "$trigger"* ]]; then
action=${last#"$trigger"} action=${action## *}
action_line=${last#"$trigger$action" }
# shellcheck disable=SC2034
read -ra action_args <<< "$action_line"
fi
fi