чување 2e4f0011a3e5d7b4480624b5ec67a6a4449251e4
родитељ 6b5112b516b743c1840be30f710e98ebc8144625
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Sun, 3 Sep 2023 18:28:15 +0200
ste.in: shellcheck
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 1, додавања: 6(+), брисања: 2(-)
diff --git a/ste.in b/ste.in
@@ -142,10 +142,12 @@ if [ $# -lt 1 ]; then
exit 1
fi
-if [ ! -r "$file" >/dev/null 2>&1 ]; then
+# shellcheck disable=SC2065
+if test ! -r "$file" >/dev/null 2>&1; then
${insprog} "$file"
fi
-if [ ! -r "$file" >/dev/null 2>&1 ]; then
+# shellcheck disable=SC2065
+if test ! -r "$file" >/dev/null 2>&1; then
error "File does not exist: '%s'" "$file"
exit 1
fi
@@ -215,6 +217,7 @@ while [ "$continue" -eq 1 ]; do
=) printf "Current row: %d\n" "$currow";;
cols) case "$args" in
"") if [ "$cols" -eq 0 ]; then
+ # shellcheck disable=SC2140
printf "Current table width: %d (autodetected)"\
"\n" "$_cols"
else
@@ -321,6 +324,7 @@ while [ "$continue" -eq 1 ]; do
;;
rows) case "$args" in
"") if [ "$rows" -eq 0 ]; then
+ # shellcheck disable=SC2140
printf "Current screen height: %d"\
" (autodetected)\n" "$_rows"
else