From 43974aa1bf66808636184b31dcfa7f4fcd87f8a5 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 15 Aug 2023 02:29:51 -0400 Subject: [PATCH] if wget fails, factorio_headless.tar.xz will be automatically deleted --- start_server.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/start_server.sh b/start_server.sh index c7c195a..d6b9358 100755 --- a/start_server.sh +++ b/start_server.sh @@ -41,6 +41,7 @@ wget "https://factorio.com/get-download/${version}/headless/linux64" -O factorio if [ $? -ne 0 ]; then echo "FATAL: There is not a headless linux64 build available for the version you've selected in your ${configpath} file." echo "FATAL: See this website for a list of all Factorio versions: https://factorio.com/download/archive/" + rm -f factorio_headless.tar.xz exit 1 fi echo "Extracting Factorio binary..."