Temporarily quiet some shellcheck warnings
This commit is contained in:
parent
a8c9f5f9c1
commit
23e09edca5
1 changed files with 5 additions and 0 deletions
5
rowbot
5
rowbot
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue