build: rm luarocks tar file behind successful installation (#6306)

Co-authored-by: leslie <59061168+leslie-tsang@users.noreply.github.com>
This commit is contained in:
kwanhur 2022-03-10 10:24:10 +08:00 committed by GitHub
parent e16c337011
commit 6645bbb04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ fi
LUAROCKS_VER=3.8.0
wget https://github.com/luarocks/luarocks/archive/v"$LUAROCKS_VER".tar.gz
tar -xf v"$LUAROCKS_VER".tar.gz
rm -f v"$LUAROCKS_VER".tar.gz
cd luarocks-"$LUAROCKS_VER" || exit
OR_BIN="$OPENRESTY_PREFIX/bin/openresty"