Initial release

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2022-04-15 07:39:19 +01:00
commit b07797b292
7 changed files with 357 additions and 0 deletions

19
src/convert.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
cd ${WATCH_DIRECTORY:=/home}
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 -mmin +1 -iname '*.sl1' -exec bash -c 'convert {}' \;
done