From: Pasi Kallinen Date: Sat, 7 Mar 2020 20:38:23 +0000 (+0200) Subject: Fail fetch-lua in Unix Makefile more gracefully X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcfa5dc267d6982855e3e4f2644b55710aa4dc41;p=nethack 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. --- 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)