Make shellcheck (slightly) more happy
… though `dash` still doesn’t work. ;<
This commit is contained in:
parent
36c4c2d205
commit
8ca6350dda
|
@ -114,7 +114,7 @@ render_responses() (
|
||||||
"
|
"
|
||||||
|
|
||||||
for response in $responses; do
|
for response in $responses; do
|
||||||
render_post "$response" "$responses_data" "$(expr "$level" + 1)"
|
render_post "$response" "$responses_data" "$((level + 1))"
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ url_post_id() (
|
||||||
url_server() (
|
url_server() (
|
||||||
url="$1"
|
url="$1"
|
||||||
protocol="$(echo "$url" | grep --only-matching '[[:alnum:]]*://')"
|
protocol="$(echo "$url" | grep --only-matching '[[:alnum:]]*://')"
|
||||||
printf "$protocol"
|
printf '%s' "$protocol"
|
||||||
echo "$url" \
|
echo "$url" \
|
||||||
| sed 's%^'"$protocol"'%%' \
|
| sed 's%^'"$protocol"'%%' \
|
||||||
| sed 's%/.*%%'
|
| sed 's%/.*%%'
|
||||||
|
@ -432,6 +432,8 @@ while getopts 'hcIRt:bm:B' arg; do
|
||||||
B)
|
B)
|
||||||
EXCLUDE_REPLIES="true"
|
EXCLUDE_REPLIES="true"
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue