xrforge/manyfold/root/hook.d/experience_updated/1000-scan-dir.sh

6 lines
184 B
Bash
Raw Normal View History

2025-10-29 17:57:16 +01:00
#!/bin/sh
cd "$(dirname $1)"
2025-10-29 17:57:16 +01:00
echo "[v] scan (new) files of model"
id="$(basename "$dir" | sed 's/\#//g')"
#echo "Model.find(id).add_new_files_later()" | /usr/src/app/bin/rails console