Initial loop is failing?

This commit is contained in:
Matt McWilliams 2021-11-29 11:35:13 -05:00
parent 8e53f5aac5
commit da7d78cd0a
1 changed files with 3 additions and 2 deletions

View File

@ -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