[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.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.sh
cmp stdout golden/script.sh

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

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

pwd
