[windows] skip 'UNIX only'

# test that chezmoi status prints that it will run the script
chezmoi status
cmp stdout golden/status

# test that chezmoi apply runs the script
chezmoi apply --force
stdout ${HOME@R}

# test that the script is recorded in the state
chezmoi state dump
stdout 94d80d5c9f06d747eb874b0a05a356085515b51ac8761a923079db734fe68133 # sha256sum of script contents

# test that chezmoi status will not print that it will run the script
chezmoi status
! stdout .

# test that chezmoi apply does not run the script a second time and does not prompt
chezmoi apply
! stdout ${HOME@R}

# test that chezmoi apply after the script is modified runs the script a second time and does not prompt
edit $CHEZMOISOURCEDIR/run_once_script
chezmoi apply
stdout ${HOME@R}

# test that reseting the state causes the next chezmoi apply to run the script
chezmoi state reset --force
chezmoi apply --force
stdout ${HOME@R}

-- golden/status --
 R script
-- home/user/.local/share/chezmoi/run_once_script --
#!/bin/sh

echo $PWD
