mirror of
https://github.com/eosswedenorg/apt
synced 2026-07-04 12:03:42 +02:00
_includes/apt-add.html: split into distinct code blocks
This commit is contained in:
parent
4190ee124f
commit
24c3b0652d
1 changed files with 15 additions and 8 deletions
|
|
@ -1,14 +1,21 @@
|
||||||
{% assign apt-add_domain = include.domain | default: site.apt.domain %}
|
{% assign apt-add_domain = include.domain | default: site.apt.domain %}
|
||||||
{% assign apt-add_dist = include.distribution | default: "[[DEFAULT]]" %}
|
{% assign apt-add_dist = include.distribution | default: "[[DEFAULT]]" %}
|
||||||
|
|
||||||
{% highlight bash %}
|
|
||||||
{% if include.distribution %}
|
{% if include.distribution %}
|
||||||
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} {{ include.distribution }} {{ include.components }}'
|
{% highlight bash %}
|
||||||
{% else %}
|
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} {{ include.distribution }} {{ include.components }}'{% if include.update == true %}
|
||||||
# For Bash like shells.
|
|
||||||
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} `lsb_release -cs` {{ include.components }}'
|
|
||||||
# If you are using fish
|
|
||||||
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }}' (lsb_release -cs) '{{ include.components }}'
|
|
||||||
{% endif %}{% if include.update == true %}
|
|
||||||
$ sudo apt-get update{% endif %}
|
$ sudo apt-get update{% endif %}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
{% else %}
|
||||||
|
{% highlight bash %}
|
||||||
|
# For Bash like shells.
|
||||||
|
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} `lsb_release -cs` {{ include.components }}'{% if include.update == true %}
|
||||||
|
$ sudo apt-get update{% endif %}
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
{% highlight bash %}
|
||||||
|
# If you are using fish
|
||||||
|
$ sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }}' (lsb_release -cs) '{{ include.components }}'{% if include.update == true %}
|
||||||
|
$ sudo apt-get update{% endif %}
|
||||||
|
{% endhighlight %}
|
||||||
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue