From 2863349c8f20cab7008fc50e6cece1f022be10c5 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sun, 20 Jun 2021 00:14:23 -0500 Subject: [PATCH] Temporarily quiet some shellcheck warnings --- rowbot | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rowbot b/rowbot index 6287400..2bacfcd 100755 --- a/rowbot +++ b/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