File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131echo " install ofs extension"
3232mkdir -p ~ /.local/share/OFS/OFS_data/extensions/MTFG
3333pushd ~ /.local/share/OFS/OFS_data/extensions/MTFG
34- if [ -d ~ /.local/share/OFS/OFS_data/extensions/MTFG/Python-Funscript-Editor ]; then
34+ if [ ! -d ~ /.local/share/OFS/OFS_data/extensions/MTFG/Python-Funscript-Editor ]; then
3535 git clone https://github.com/michael-mueller-git/Python-Funscript-Editor.git
3636fi
3737
@@ -40,7 +40,12 @@ git pull
4040source ~ /anaconda3/etc/profile.d/conda.sh 2> /dev/null
4141source ~ /miniconda3/etc/profile.d/conda.sh 2> /dev/null
4242conda env create -f environment_ubuntu.yaml
43- bash download_ffmpeg.sh
43+ if [ -f ~ /.local/share/OFS/OFS_data/extensions/MTFG/Python-Funscript-Editor/assets/ffmpeg ]; then
44+ cp -fv ~ /.local/share/OFS/OFS_data/extensions/MTFG/Python-Funscript-Editor/assets/ffmpeg ~ /.local/share/OFS/OFS_data/extensions/MTFG/Python-Funscript-Editor/funscript_editor/data/ffmpeg
45+ else
46+ # TODO newes ffmpeg break MTFG!!
47+ bash download_ffmpeg.sh
48+ fi
4449popd
4550
4651cp -fv ~ /.local/share/OFS/OFS_data/extensions/MTFG/Python-Funscript-Editor/contrib/Installer/assets/main.lua ~ /.local/share/OFS/OFS_data/extensions/MTFG/main.lua
You can’t perform that action at this time.
0 commit comments