update-luarocks-packages: simplify server var, whitespace fixup

This commit is contained in:
Will Dietz 2019-03-25 03:04:33 -05:00
parent 7bd31a322f
commit c37b3ab888

View File

@ -76,11 +76,7 @@ FOOTER="
function convert_pkg () {
nix_pkg_name="$1"
lua_pkg_name="$2"
server=""
if [ ! -z "$3" ]; then
server=" --server=$3"
fi
server="${3:+--server=$3}"
version="${4:-}"
echo "looking at $lua_pkg_name (version $version) from server [$server]" >&2