TheLocehiliosan / yadm

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

document how to check if a variable is unset #477

Open xenoterracide opened 6 months ago

xenoterracide commented 6 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 4 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 4 months ago

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