TheLocehiliosan / yadm

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

check if file exists #405

Closed xenoterracide closed 2 years ago

xenoterracide commented 2 years ago

if the included file does not exist, then there is an error preventing the file from being created

Creating /home/xeno/.gitconfig from template /home/xeno/.config/yadm/alt/.gitconfig##template,e.ini
/home/xeno/.config/yadm/alt/.gitconfig##template,e.ini:34: error: could not read '/home/xeno/.config/yadm/alt/../extra/gitconfig.Linux.ini'
/home/xeno/.config/yadm/alt/.gitconfig##template,e.ini:35: error: could not read '/home/xeno/.config/yadm/alt/../extra/gitconfig..ini'

one thought is warn instead and continue, another is allow checking for file existence in an if. The former is terser and probably better.

github-actions[bot] commented 2 years 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 2 years ago

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