1
0
Fork 0
mirror of https://github.com/eosswedenorg/apt synced 2026-06-16 04:34:56 +02:00

_includes/apt-add.html: prefix variables to avoid unwanted overwrites.

This commit is contained in:
Henrik Hautakoski 2020-04-27 15:27:04 +02:00
parent ab031b21b9
commit ea903b700b

View file

@ -1,6 +1,6 @@
{% assign domain = include.domain | default: site.apt.domain %}
{% assign dist = include.distribution | default: "`lsb_release -cs`" %}
{% assign apt-add_domain = include.domain | default: site.apt.domain %}
{% assign apt-add_dist = include.distribution | default: "`lsb_release -cs`" %}
{% highlight bash %}
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ domain }}/{{ include.repo }} {{ dist }} {{ include.components }}' {% if include.update == true %}
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} {{ apt-add_dist }} {{ include.components }}' {% if include.update == true %}
$ sudo apt-get update{% endif %}
{% endhighlight %}