From 70bede795b98a6177a1aacc93a7997c52b3a02ab Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Tue, 1 Mar 2016 10:52:23 -0500 Subject: [PATCH] reduced unecessary installer cannot stat warnings --- update-chunkymap-installer-only.sh | 4 +++- update-chunkymap-on-ubuntu-from-web.sh | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/update-chunkymap-installer-only.sh b/update-chunkymap-installer-only.sh index 29ee374..bd08603 100644 --- a/update-chunkymap-installer-only.sh +++ b/update-chunkymap-installer-only.sh @@ -7,7 +7,9 @@ if [ ! -d "$HOME/Downloads" ]; then fi cd $HOME/Downloads -rm master.zip +if [ -f master.zip ]; then + rm master.zip +fi wget https://github.com/expertmm/minetest-chunkymap/archive/master.zip rm -f minetest-chunkymap.zip mv master.zip minetest-chunkymap.zip diff --git a/update-chunkymap-on-ubuntu-from-web.sh b/update-chunkymap-on-ubuntu-from-web.sh index d01f3ca..3a67678 100644 --- a/update-chunkymap-on-ubuntu-from-web.sh +++ b/update-chunkymap-on-ubuntu-from-web.sh @@ -9,7 +9,10 @@ fi #cd $CHUNKYMAP_INSTALLER_DIR chmod +x update-chunkymap-installer-only.sh cd $HOME/Downloads -mv -f update-chunkymap-installer-only.sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh" +if [ -f "update-chunkymap-installer-only.sh" ]; then + # move misplaced file from older versions: + mv -f update-chunkymap-installer-only.sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh" +fi sh "$CHUNKYMAP_INSTALLER_DIR/update-chunkymap-installer-only.sh" #./install-chunkymap-on-ubuntu.sh chmod +x "$CHUNKYMAP_INSTALLER_DIR/install-chunkymap-on-ubuntu.sh"