[windows] skip 'UNIX only'

# test that chezmoi apply runs onchange scripts the first time
mkdir $CHEZMOISOURCEDIR
cp golden/script-one.sh $CHEZMOISOURCEDIR/run_onchange_script.sh
chezmoi apply
stdout one
chezmoi state get --bucket=entryState --key=$HOME/script.sh
cmp stdout golden/script-one-state.json

# test that chezmoi apply does not run onchange scripts when their contents are not changed
chezmoi apply
! stdout .

# test that chezmoi status does not print that it will run onchange scripts when their contents are not changed
chezmoi status
! stdout .

# test that chezmoi status does print that it will run onchange scripts when their contents are changed
cp golden/script-two.sh $CHEZMOISOURCEDIR/run_onchange_script.sh
chezmoi status
cmp stdout golden/status

# test that chezmoi apply runs onchange scripts when their contents are changed
chezmoi apply
stdout two
chezmoi state get --bucket=entryState --key=$HOME/script.sh
cmp stdout golden/script-two-state.json

# test that chezmoi apply runs onchange scripts when their contents are reverted to a previous state
cp golden/script-one.sh $CHEZMOISOURCEDIR/run_onchange_script.sh
chezmoi apply
stdout one
chezmoi state get --bucket=entryState --key=$HOME/script.sh
cmp stdout golden/script-one-state.json

-- golden/script-one-state.json --
{
  "type": "script",
  "contentsSHA256": "a07f0271151ee0271ed379ebbddc5ef49d0f625417c8fe23254179e56f98d2df"
}
-- golden/script-two-state.json --
{
  "type": "script",
  "contentsSHA256": "7c8d714586cecf4f0ffb735ad10334df98428bc5282c0d0a6b78f5c074365159"
}
-- golden/script-one.sh --
#!/bin/sh

echo one
-- golden/script-two.sh --
#!/bin/sh

echo two
-- golden/status --
 R script.sh
