[!windows] skip 'Windows only'

# test that chezmoi apply modifies a file with a Batch script
chezmoi apply
unix2dos golden/modified
cmp $HOME/.file golden/modified

chhome home2/user

# test that chezmoi apply returns an error when there are multiple modify scripts for the same target
! chezmoi apply
stderr 'inconsistent state'

-- golden/modified --
# modified
-- golden/modified-powershell --
# contents of .file
# modified
-- home/user/.file --
# contents of .file
-- home/user/.local/share/chezmoi/modify_dot_file.bat --
@echo off
echo # modified
-- home2/user/.local/share/chezmoi/modify_dot_file.bat --
-- home2/user/.local/share/chezmoi/modify_dot_file.cmd --
