mkhomedir

# test that chezmoi add warns if adding a file would remove the template attribute
stdin golden/yes
chezmoi add --no-tty $HOME${/}.file
stdout 'adding \.file would remove template attribute, continue'
cmp $CHEZMOISOURCEDIR/dot_file golden/.file
! exists $CHEZMOISOURCEDIR/dot_file.tmpl

-- golden/.file --
# contents of .file
-- golden/yes --
y
-- home/user/.local/share/chezmoi/dot_file.tmpl --
{{ "# contents .file" }}
