website-build: build.sh: fix missing double quote in $i comparison.
Without that fix, using shellcheck on this file results in several warning like this one: In website-build/build.sh line 101: if [ $i -ge $# ] ; then ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
parent
971eae0ca5
commit
4b122e8989
|
@ -81,7 +81,7 @@ help_missing_arg()
|
||||||
}
|
}
|
||||||
|
|
||||||
i=1
|
i=1
|
||||||
while [ $i -le $# ] ; do
|
while [ "$i" -le $# ] ; do
|
||||||
opt="$(eval echo \$$i)"
|
opt="$(eval echo \$$i)"
|
||||||
|
|
||||||
case "${opt}" in
|
case "${opt}" in
|
||||||
|
@ -90,7 +90,7 @@ while [ $i -le $# ] ; do
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
--with-lbwww-path)
|
--with-lbwww-path)
|
||||||
if [ $i -ge $# ] ; then
|
if [ "$i" -ge $# ] ; then
|
||||||
help_missing_arg "--with-lbwww-path"
|
help_missing_arg "--with-lbwww-path"
|
||||||
exit ${EX_USAGE}
|
exit ${EX_USAGE}
|
||||||
fi
|
fi
|
||||||
|
@ -98,7 +98,7 @@ while [ $i -le $# ] ; do
|
||||||
i="$(expr $i + 1)"
|
i="$(expr $i + 1)"
|
||||||
;;
|
;;
|
||||||
--with-untitled-path)
|
--with-untitled-path)
|
||||||
if [ $i -ge $# ] ; then
|
if [ "$i" -ge $# ] ; then
|
||||||
help_missing_arg "--with-untitled-path"
|
help_missing_arg "--with-untitled-path"
|
||||||
exit ${EX_USAGE}
|
exit ${EX_USAGE}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue