yadm-dev/yadm

document how to check if a variable is unset

Closed this issue · 3 comments

I could swear I used to do this somewhere...

https://yadm.io/docs/templates#

{% if yadm.class == "" %}
{% else %}
{% include "../extra/gitconfig.{{ yadm.class }}.ini" %}
{% endif %}
/home/xeno/.config/yadm/alt/.gitconfig##template,e.ini:37: error: could not read '/home/xeno/.config/yadm/alt/../extra/gitconfig..ini'

funny because I run zsh

bash version 5.2.21(1)-release
 git version 2.43.0
yadm version 3.2.2

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

This issue was closed because it has been labeled as stale for 7 days with no activity.

erijo commented

With the support for != that was added in version 3.3.0 I think we can close this issue.