2025-10-29 17:57:16 +01:00
|
|
|
#!/bin/sh
|
2025-11-11 19:11:09 +01:00
|
|
|
dir="$(dirname $1)"
|
|
|
|
|
cd "$dir"
|
2025-10-29 17:57:16 +01:00
|
|
|
echo "[v] scan (new) files of model"
|
|
|
|
|
id="$(basename "$dir" | sed 's/\#//g')"
|
2025-11-12 18:18:45 +01:00
|
|
|
# TODO: better ratelimiting
|
|
|
|
|
test -f /tmp/.scan && test $id = "$(cat /tmp/.scan)" && exit
|
|
|
|
|
/manyfold/cli/manyfold.sh scan_experience $id
|
|
|
|
|
echo $id > /tmp/.scan
|