From 8ca6350ddaa28e266a914126342983562e37df3d Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:46:26 -0500 Subject: [PATCH] Make shellcheck (slightly) more happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … though `dash` still doesn’t work. ;< --- fedi2html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fedi2html b/fedi2html index 9834412..0bcb1c6 100755 --- a/fedi2html +++ b/fedi2html @@ -114,7 +114,7 @@ render_responses() ( " for response in $responses; do - render_post "$response" "$responses_data" "$(expr "$level" + 1)" + render_post "$response" "$responses_data" "$((level + 1))" done ) @@ -267,7 +267,7 @@ url_post_id() ( url_server() ( url="$1" protocol="$(echo "$url" | grep --only-matching '[[:alnum:]]*://')" - printf "$protocol" + printf '%s' "$protocol" echo "$url" \ | sed 's%^'"$protocol"'%%' \ | sed 's%/.*%%' @@ -432,6 +432,8 @@ while getopts 'hcIRt:bm:B' arg; do B) EXCLUDE_REPLIES="true" ;; + *) + ;; esac done