Skip to content

Commit

Permalink
Make shellcheck happy in iibot-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
zstyblik committed Jul 15, 2024
1 parent 1706a8e commit 9b2d32a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iibot-ng
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ set -u

monitor()
{
# shellcheck disable=SC3043
local iipid="${1}"
tail -f -n1 --pid="${iipid}" "${ircdir}/${network}/${channel}/out" | \
# NOTE: format of output changed in v1.8
Expand All @@ -24,6 +25,8 @@ monitor()
if [ "$nick" = '-!-' ]; then
continue
fi
# shellcheck disable=SC2034
nixtime_is_unused="${nixtime}"
# strip < and >. if msg is by ourself ignore it
nick=$(printf -- "%s" "${nick}" | sed -e 's@^<@@' | sed -e 's@>$@@')
if [ "${nick}" = "${nickname}" ]; then
Expand Down Expand Up @@ -62,6 +65,7 @@ monitor()

monitor_link()
{
# shellcheck disable=SC3043
local iipid="${1}"
IFS='
'
Expand Down

0 comments on commit 9b2d32a

Please sign in to comment.