server/minecraft: Quote minecraft_version in shell command:

dehydrated
Felix Stupp 4 years ago
parent c3b8643fa8
commit fbec59d8ab
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -13,7 +13,7 @@ launch_script: "{{ user_directory }}/launch"
apparmor_profile: "{{ global_apparmor_profiles_directory }}/{{ launch_script | regex_replace('/', '.') }}"
# minecraft_version: "1.10"
minecraft_source_link_generator: "curl --silent https://mcversions.net/download/{{ minecraft_version }} | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+/server\\.jar(?=\")'"
minecraft_source_link_generator: "curl --silent https://mcversions.net/download/{{ minecraft_version | quote }} | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+/server\\.jar(?=\")'"
minecraft_source_link: "{{ lookup('pipe', minecraft_source_link_generator) }}" # direct link to server jar
minecraft_port: "25565"
minecraft_query_port: "{{ minecraft_port }}"

Loading…
Cancel
Save