Move existing templates instead of redownloading (#8)

Closes #8
This commit is contained in:
Tomer Keren 2020-04-04 15:16:27 +03:00
parent 3ba8e158e1
commit 612927e2fe

View file

@ -1,14 +1,8 @@
#!/bin/sh
set -e
# Install export templates
wget https://downloads.tuxfamily.org/godotengine/3.2.1/Godot_v3.2.1-stable_export_templates.tpz --quiet
mkdir ~/.cache
mkdir -p ~/.config/godot
mkdir -p ~/.local/share/godot/templates/3.2.1.stable
unzip Godot_v3.2.1-stable_export_templates.tpz
mv templates/* ~/.local/share/godot/templates/3.2.1.stable
rm -f Godot_v3.2.1-stable_export_templates.tpz
# Move godot templates already installed from the docker image to home
mv /root/.local ~
if [ "$3" != "" ]
then