Make shellcheck (slightly) more happy

… though `dash` still doesn’t work. ;<
This commit is contained in:
Jaidyn Ann 2024-10-31 14:46:26 -05:00
parent 36c4c2d205
commit 8ca6350dda

View File

@ -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