yadm-dev / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
5.14k stars 177 forks source link

document how to check if a variable is unset #477

Closed xenoterracide closed 2 weeks ago

xenoterracide commented 11 months ago

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
github-actions[bot] commented 9 months ago

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.

github-actions[bot] commented 8 months ago

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

erijo commented 2 weeks ago

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