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
|
||||
c=0
|
||||
for svg in "${1}"*.svg ; do
|
||||
if [[ ${c} -ne ${2} ]]; then
|
||||
if [[ ${c} -lt ${2} ]]; then
|
||||
echo $c
|
||||
let "c=c+1"
|
||||
continue
|
||||
fi
|
||||
|
@ -43,7 +44,7 @@ fi
|
|||
i=0
|
||||
#files in dir
|
||||
for svg in "${1}"*.svg ; do
|
||||
if [ "${2}" != "" ] && [ "${i}" != "${2}" ]; then
|
||||
if [[ "${2}" != "" ]] && [[ ${i} -lt ${2} ]]; then
|
||||
let "i=i+1"
|
||||
continue
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue