diff --git a/install.sh b/install.sh index 8facadf..a5c1df6 100755 --- a/install.sh +++ b/install.sh @@ -64,10 +64,10 @@ install() { verif cd .. + + echo "Installation terminé." + echo "Mise à jour des mods..." exec ./upgrade.sh --mods-link - - echo "Installation terminé. Bravo !" - } sshinstall() { diff --git a/upgrade.sh b/upgrade.sh index 3ce0144..d79cfc0 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -23,7 +23,9 @@ if [[ $1 == "--mods-link" ]]; then rm minetest/mods/* # Supression du world.mt - rm world.mt + if [[ -a world.mt ]]; then + rm world.mt + fi # Création du fichier world.mt depuis sa conf cp worldmt.conf world.mt @@ -51,4 +53,5 @@ if [[ $1 == "--mods-link" ]]; then fi fi +echo "Mise à jour terminé." exit 0