if wget fails, factorio_headless.tar.xz will be automatically deleted
This commit is contained in:
parent
df8637ab87
commit
43974aa1bf
1 changed files with 1 additions and 0 deletions
|
@ -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..."
|
||||
|
|
Loading…
Reference in a new issue