18 lines
403 B
Bash
Executable file
18 lines
403 B
Bash
Executable file
#!/bin/sh
|
|
experience=/mnt/templates/xrfragments/\#4
|
|
dir=/tmp/hook-compile-textures
|
|
xrfdir=$dir/.xrforge
|
|
|
|
which assimp || {
|
|
echo "❌ assimp was not installed";
|
|
exit 1;
|
|
}
|
|
|
|
mkdir -p $xrfdir || true
|
|
/root/hook.d/experience_updated/*-compile-textures.rb $experience/datapackage.json 2>&1 | grep "wrote output" || {
|
|
echo "❌ $experience/murial3D.glb was not updated";
|
|
exit 1;
|
|
}
|
|
|
|
rm -rf $dir
|
|
exit 0
|