mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
update-luarocks-packages: simplify server var, whitespace fixup
This commit is contained in:
parent
7bd31a322f
commit
c37b3ab888
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user