From c613caa83b472ab62a8c0fa371166ac48f8f1262 Mon Sep 17 00:00:00 2001 From: Jacob Gustafson Date: Tue, 21 Mar 2017 14:18:21 -0400 Subject: [PATCH] fix issue where technic was copied inside itself only on update --- etc/change_world_name_manually_first/game-install-ENLIVEN | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/change_world_name_manually_first/game-install-ENLIVEN b/etc/change_world_name_manually_first/game-install-ENLIVEN index 55920cc..5e54c00 100644 --- a/etc/change_world_name_manually_first/game-install-ENLIVEN +++ b/etc/change_world_name_manually_first/game-install-ENLIVEN @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2017 expertmm +# Copyright 2017 expertmm. License: # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -403,6 +403,9 @@ fi if [ -f "$MTMOD_SRC_ZIP" ]; then rm -f "$MTMOD_SRC_ZIP" fi +if [ -d "$MTMOD_DEST_PATH" ]; then + rm -Rf "$MTMOD_DEST_PATH" +fi wget https://github.com/minetest-technic/technic/archive/master.zip mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP unzip $MTMOD_SRC_ZIP