[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 chezmoi status prints that it will run the script again
chezmoi status
cmp stdout golden/status

# test that chezmoi apply runs the script even if it has run before
chezmoi apply --force
stdout ${HOME@R}

# test that chezmoi dump includes the script
chezmoi dump
cmp stdout golden/dump.json

# test that chezmoi managed includes the script
chezmoi managed --include=scripts
cmpenv stdout golden/managed

[!exec:tar] stop 'tar not found in $PATH'

# test that chezmoi archive includes the script in the archive
chezmoi archive --format=tar --gzip --output=archive.tar.gz
exec tar -tzf archive.tar.gz
cmp stdout golden/archive

-- golden/archive --
script
-- golden/dump.json --
{
  "script": {
    "type": "script",
    "name": "script",
    "contents": "#!/bin/sh\n\necho $PWD\n"
  }
}
-- golden/managed --
script
-- golden/status --
 R script
-- home/user/.local/share/chezmoi/run_script --
#!/bin/sh

echo $PWD
