yadm-dev / yadm

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

document how to check if a variable is unset #477

Open xenoterracide opened 10 months ago

xenoterracide commented 10 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 8 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.