[windows] skip 'UNIX only'

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

# test the chezmoi diff prints the script
chezmoi diff
cmp stdout golden/diff

# 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

# test that chezmoi cat writes the contents of the script
chezmoi cat $HOME${/}script
cmp stdout golden/script

# 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/diff --
diff --git a/script b/script
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..f9103e018df1bbc178e66b46d8f133f49c85225d 100755
--- a/script
+++ b/script
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pwd
-- golden/dump.json --
{
  "script": {
    "type": "script",
    "name": "script",
    "contents": "#!/bin/sh\n\npwd\n"
  }
}
-- golden/managed --
script
-- golden/script --
#!/bin/sh

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

pwd
