[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

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

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

echo $PWD
