commit 797e528f0252bb51b72f975e6987e2ea63e88c8e
parent 70779824237dcaacaec872a01934bf6abd0751a7
Author: blmayer <bleemayer@gmail.com>
Date: Thu, 16 Nov 2023 15:47:07 -0300
Fixed some shellcheck notes
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/astro b/astro
@@ -335,6 +335,7 @@ pager() {
scroll=$((pos-lines))
[ $scroll -gt $lines ] && scroll="$((lines-1))"
+ # shellcheck disable=SC2086
for i in $(seq 1 "$scroll")
do
line="$(sed "$((pos-lines))q;d" "$1")"
@@ -351,6 +352,8 @@ pager() {
scroll=$((lines-1))
end="$((pos+scroll))"
[ $end -ge $l ] && scroll="$((l-pos))"
+
+ # shellcheck disable=SC2086
for i in $(seq 1 "$scroll")
do
printf '\e[%sH' "$lines"