From fcfa5dc267d6982855e3e4f2644b55710aa4dc41 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 7 Mar 2020 22:38:23 +0200 Subject: [PATCH] Fail fetch-lua in Unix Makefile more gracefully If missing curl or failing to download the lua tarball, don't try to untar the nonexistent file. --- sys/unix/Makefile.top | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/unix/Makefile.top b/sys/unix/Makefile.top index 364d1b3d9..87e6def79 100644 --- a/sys/unix/Makefile.top +++ b/sys/unix/Makefile.top @@ -257,9 +257,9 @@ fetch-lua: fetch-Lua @true fetch-Lua: - ( mkdir -p lib ; cd lib ; \ - curl -R -O http://www.lua.org/ftp/lua-$(LUA_VERSION).tar.gz ; \ - tar zxf lua-$(LUA_VERSION).tar.gz ; rm -f lua-$(LUA_VERSION).tar.gz ) + ( mkdir -p lib && cd lib && \ + curl -R -O http://www.lua.org/ftp/lua-$(LUA_VERSION).tar.gz && \ + tar zxf lua-$(LUA_VERSION).tar.gz && rm -f lua-$(LUA_VERSION).tar.gz ) update: $(GAME) recover $(VARDAT) spec_levs # (don't yank the old version out from under people who're playing it)