瀏覽代碼

Fixes mint menu generator

Was not accounting for point releases previously.

Closes https://github.com/netbootxyz/netboot.xyz/issues/941
Antony Messerli 3 年之前
父節點
當前提交
e4eeb67a34
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      roles/netbootxyz/templates/menu/live-mint.ipxe.j2

+ 2 - 2
roles/netbootxyz/templates/menu/live-mint.ipxe.j2

@@ -17,7 +17,7 @@ goto ${live_version}
 
 :20
 {% for key, value in endpoints.items() | sort %}
-{% if value.os == "mint" and 'squash' in key and value.version == "20" %}
+{% if value.os == "mint" and 'squash' in key and '20' in value.version %}
 item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
 {% endif %}
 {% endfor %}
@@ -25,7 +25,7 @@ goto flavor_select
 
 :19
 {% for key, value in endpoints.items() | sort %}
-{% if value.os == "mint" and 'squash' in key and value.version == "19" %}
+{% if value.os == "mint" and 'squash' in key and '19' in value.version %}
 item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
 {% endif %}
 {% endfor %}