File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,9 @@ nagelfaraddons=y
136136# check if output/error channels are attached to terminal
137137for 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
143143done
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
184184echo_usage () {
185+ # shellcheck disable=SC2028
185186 echo " Usage: $progpath [OPTION]...
186187Check requirements then set variables and create Makefiles.
187188
You can’t perform that action at this time.
0 commit comments