commit 7e21b5bb7d8ee9f1ed8671acecfb38fb791b20e7
parent 80cbcaf4a52723d1e0d37a23bf91fbcc774467e1
Author: René Wagner <rwa@clttr.info>
Date: Wed, 16 Aug 2023 21:02:47 +0200
remove shellcheck warnings
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/astro b/astro
@@ -184,10 +184,12 @@ typesetgmi() {
# add margins and fold
if [ "$pre" = 1 ]
then
+ # shellcheck disable=SC2154
printf '%*s%s\n' "$margin" "" "$line"
continue
fi
+ # shellcheck disable=SC2154
case "$line" in
"### "*) sty="$sty_header3" && line="${line#'### '}" ;;
"## "*) sty="$sty_header2" && line="${line#'## '}" ;;
@@ -198,8 +200,7 @@ typesetgmi() {
echo "${link#' '}" >> "$linksfile"
linkcount=$((linkcount+1))
- # shellcheck disable=SC2086
- line="$(echo $link | cut -d' ' -f2-)"
+ line="$(echo "$link" | cut -d' ' -f2-)"
[ -z "$line" ] && line="$link"
sty="$sty_linkb${linkcount}$sty_linkt"