make this script slightly smarter. Stop incrementing variable once match is hit.

This commit is contained in:
Matt McWilliams 2021-08-10 19:24:54 -04:00
parent adc8b899ed
commit 7ef75b47ba
1 changed files with 1 additions and 1 deletions

View File

@ -25,8 +25,8 @@ fi
i=0
#files in dir
for svg in "${1}"*.svg ; do
let "i=i+1"
if [ "${2}" != "" ] && [ "${i}" != "${2}" ]; then
let "i=i+1"
continue
fi
filename=`basename "${svg}"`