From c91da826c16ef8aaa3a10ae5f07c072e6c46bc54 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Tue, 22 Mar 2016 20:26:31 -0400 Subject: [PATCH] ensuring updater is updated first --- README.md | 3 ++- update-chunkymap-on-ubuntu-from-web.sh | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c2a784e..09295c9 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,8 @@ world_path * Install the git version of minetest (or otherwise install 0.4.13 or other version compatible with the map generators used by chunkymap) such as: #if you have a version before 2016-03-23: - wget + wget https://github.com/expertmm/minetest-chunkymap/raw/master/rename-deprecated.sh + sh rename-deprecated.sh wget https://github.com/expertmm/minetest-chunkymap/raw/master/install-chunkymap-on-ubuntu-from-web.sh chmod +x install-chunkymap-on-ubuntu-from-web.sh diff --git a/update-chunkymap-on-ubuntu-from-web.sh b/update-chunkymap-on-ubuntu-from-web.sh index b56c4ac..3d3b237 100644 --- a/update-chunkymap-on-ubuntu-from-web.sh +++ b/update-chunkymap-on-ubuntu-from-web.sh @@ -1,14 +1,17 @@ #!/bin/sh cd $HOME -if [ -d "$HOME/minetest-stuff/minetest-chunkymap" ]; then - rm -Rf $HOME/minetest-stuff/minetest-chunkymap -fi CHUNKYMAP_INSTALLER_DIR=$HOME/Downloads/minetest-chunkymap CHUNKYMAP_DEST=$HOME/chunkymap if [ ! -d "$HOME/Downloads" ]; then mkdir "$HOME/Downloads" fi +cd "$CHUNKYMAP_DEST" +rm update-chunkymap-installer-only.sh +wget https://github.com/expertmm/minetest-chunkymap/blob/master/update-chunkymap-installer-only.sh +#Wait to make sure nothing weirdly not finished downloading: +sleep .2 +cd $HOME #cd $CHUNKYMAP_INSTALLER_DIR #chmod +x update-chunkymap-installer-only.sh #cd $CHUNKYMAP_DEST