Skip to content

Commit 01d423b

Browse files
committed
install: fix SC20{04,28,86} warnings in configure
1 parent c20b191 commit 01d423b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

configure

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ nagelfaraddons=y
136136
# check if output/error channels are attached to terminal
137137
for i in 1 2; do
138138
if [ -t $i ]; then
139-
fdisterm[$i]=1
139+
fdisterm[i]=1
140140
else
141-
fdisterm[$i]=0
141+
fdisterm[i]=0
142142
fi
143143
done
144144

@@ -147,7 +147,7 @@ sgr() {
147147
local fd=$1
148148
local code=$2
149149
local msg=$3
150-
if [ ${fdisterm[$fd]} -eq 1 ]; then
150+
if [ "${fdisterm[fd]}" -eq 1 ]; then
151151
local out="\033[${code}m${msg}\033[0m"
152152
else
153153
local out=$msg
@@ -182,6 +182,7 @@ echo_warning() {
182182

183183
# print usage message
184184
echo_usage() {
185+
# shellcheck disable=SC2028
185186
echo "Usage: $progpath [OPTION]...
186187
Check requirements then set variables and create Makefiles.
187188

0 commit comments

Comments
 (0)