8 lines
257 B
Bash
8 lines
257 B
Bash
|
|
#!/bin/sh
|
||
|
|
echo "$1" | grep -E 'datapackage|glb$' || exit 0 # nothing to do
|
||
|
|
dir=$(dirname $1)
|
||
|
|
cd "$dir"
|
||
|
|
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
|