1
0
Fork 0
docker-prusaslicer/src/convert.sh

20 lines
271 B
Bash
Executable File

#!/bin/bash
cd /home/Resin/
convert() {
NEW_FILE=${1}.ctb
test -f ${NEW_FILE} && return
/usr/bin/uv3dp ${1} ${NEW_FILE}
}
export -f convert
while [ true ]; do
sleep 30
find . -type f -maxdepth 1 -mmin +1 -iname '*.sl1' -exec bash -c 'convert {}' \;
done