[!windows] skip 'Windows only'

unix2dos golden/apply

# test that chezmoi apply runs scripts in the correct order
symlink home/user/.local/share/chezmoi/run_before_00-before.cmd -> .script.cmd
symlink home/user/.local/share/chezmoi/run_before_99-before.cmd -> .script.cmd
symlink home/user/.local/share/chezmoi/run_00.cmd -> .script.cmd
symlink home/user/.local/share/chezmoi/run_99.cmd -> .script.cmd
symlink home/user/.local/share/chezmoi/run_after_00-after.cmd -> .script.cmd
symlink home/user/.local/share/chezmoi/run_after_99-after.cmd -> .script.cmd
chezmoi apply --force
cmp stdout golden/apply

-- golden/apply --
00-before
99-before
00
99
00-after
99-after
-- home/user/.local/share/chezmoi/.script.cmd --
@echo off
set base=%~n0
:: on windows, there's some randomness at the beginning of the filename. remove it.
echo %base:*.=%
