Normalize paths of dirs
This commit is contained in:
parent
5c9e4dd8e5
commit
3e53245396
8
draw.sh
8
draw.sh
|
@ -15,6 +15,8 @@ if [[ "${1}" == "" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
FRAMES=$(fullpath)/
|
||||||
|
|
||||||
END=-1
|
END=-1
|
||||||
if [[ "${3}" != "" ]]; then
|
if [[ "${3}" != "" ]]; then
|
||||||
END=${3}
|
END=${3}
|
||||||
|
@ -28,14 +30,12 @@ if [[ "${2}" == "" ]] || [[ $2 -eq 0 ]]; then
|
||||||
askContinue "Start with first frame?" "Starting with first frame..."
|
askContinue "Start with first frame?" "Starting with first frame..."
|
||||||
else
|
else
|
||||||
c=0
|
c=0
|
||||||
for svg in "${1}"*.svg ; do
|
for svg in "${FRAMES}"*.svg ; do
|
||||||
if [[ ${c} -lt ${2} ]]; then
|
if [[ ${c} -lt ${2} ]]; then
|
||||||
echo $c
|
|
||||||
c=$((c+1))
|
c=$((c+1))
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
filename=`basename "${svg}"`
|
filename=`basename "${svg}"`
|
||||||
echo "Starting frame: ${filename}"
|
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
askContinue "Start with ${filename}" "Continuing with frame ${filename}..."
|
askContinue "Start with ${filename}" "Continuing with frame ${filename}..."
|
||||||
|
@ -43,7 +43,7 @@ fi
|
||||||
|
|
||||||
i=0
|
i=0
|
||||||
#files in dir
|
#files in dir
|
||||||
for svg in "${1}"*.svg ; do
|
for svg in "${FRAMES}"*.svg ; do
|
||||||
if [[ "${2}" != "" ]] && [[ ${2} -ne 0 ]] && [[ ${i} -lt ${2} ]]; then
|
if [[ "${2}" != "" ]] && [[ ${2} -ne 0 ]] && [[ ${i} -lt ${2} ]]; then
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue