From 0aca1c8fcd3d9cc5cf4bf98eacec5399a19507e6 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Wed, 6 May 2020 23:15:58 -0400 Subject: [PATCH] recover from interruption by removing an old sub-subdir in tmp --- update-minetest-linux64.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update-minetest-linux64.sh b/update-minetest-linux64.sh index e5b001d..4a3c5b9 100755 --- a/update-minetest-linux64.sh +++ b/update-minetest-linux64.sh @@ -175,6 +175,9 @@ if [ -z "$MY_TMP" ]; then fi mkdir -p "$MY_TMP" EXTRACTED_PATH="$MY_TMP/$EXTRACTED_NAME" +if [ -d "$EXTRACTED_PATH" ]; then + rm -Rf "$EXTRACTED_PATH" || customExit "Deleting the old $EXTRACTED_PATH failed." +fi exitAndDeleteDownload(){ if [ -f "$DL_PATH" ]; then