commit 897d5e4695eacded6e0a10e098bdd769437eb34c
parent e5e58536225c4dc72c61846900e121b8ca0ba850
Author: blmayer <git@myr.sh>
Date: Tue, 12 Sep 2023 15:05:38 -0300
Fixed lint
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/astro b/astro
@@ -199,12 +199,13 @@ parseurl() {
typesetgmi() {
# some setup first
- # shellcheck disable=SC2154
[ -f "$linksfile" ] && rm "$linksfile"
cols=$(tput cols)
+ linkcount="0"
+
+ # shellcheck disable=SC2154
width=$((cols - (2*margin)))
debug "text width: $width"
- linkcount="0"
stop
while IFS='' read -r line || [ -n "$line" ];
@@ -241,8 +242,9 @@ typesetgmi() {
echo "$line" | fold -w "$width" -s | {
while IFS='' read -r txt
do
- # shellcheck disable=SC2059
printf "%*s" "$margin" ""
+
+ # shellcheck disable=SC2059
printf -- "$sty"
echo "$txt"
printf '\e[m'