Initial loop is failing?
This commit is contained in:
parent
8e53f5aac5
commit
da7d78cd0a
5
draw.sh
5
draw.sh
|
@ -29,7 +29,8 @@ if [[ "${2}" == "" ]] || [[ $2 -eq 0 ]]; then
|
||||||
else
|
else
|
||||||
c=0
|
c=0
|
||||||
for svg in "${1}"*.svg ; do
|
for svg in "${1}"*.svg ; do
|
||||||
if [[ ${c} -ne ${2} ]]; then
|
if [[ ${c} -lt ${2} ]]; then
|
||||||
|
echo $c
|
||||||
let "c=c+1"
|
let "c=c+1"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
@ -43,7 +44,7 @@ fi
|
||||||
i=0
|
i=0
|
||||||
#files in dir
|
#files in dir
|
||||||
for svg in "${1}"*.svg ; do
|
for svg in "${1}"*.svg ; do
|
||||||
if [ "${2}" != "" ] && [ "${i}" != "${2}" ]; then
|
if [[ "${2}" != "" ]] && [[ ${i} -lt ${2} ]]; then
|
||||||
let "i=i+1"
|
let "i=i+1"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue