# test that .chezmoiignore works with scripts
exec chezmoi diff
cmp stdout golden/diff

chhome home2/user

# test that .chezmoiignore works with scripts in .chezmoiscripts
exec chezmoi diff
cmp stdout golden/diff2

-- golden/diff --
diff --git a/script-one.sh b/script-one.sh
new file mode 100755
index 0000000000000000000000000000000000000000..a5498fa48acd6f616d60604b94352958c5e967fc
--- /dev/null
+++ b/script-one.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "script one"
-- golden/diff2 --
diff --git a/.chezmoiscripts/script-one.sh b/.chezmoiscripts/script-one.sh
new file mode 100755
index 0000000000000000000000000000000000000000..a5498fa48acd6f616d60604b94352958c5e967fc
--- /dev/null
+++ b/.chezmoiscripts/script-one.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "script one"
-- home/user/.local/share/chezmoi/.chezmoiignore --
script-two.sh
-- home/user/.local/share/chezmoi/run_script-one.sh --
#!/bin/sh

echo "script one"
-- home/user/.local/share/chezmoi/run_script-two.sh --
#!/bin/sh

echo "script two"
-- home2/user/.local/share/chezmoi/.chezmoiignore --
.chezmoiscripts/script-two.sh
-- home2/user/.local/share/chezmoi/.chezmoiscripts/run_script-one.sh --
#!/bin/sh

echo "script one"
-- home2/user/.local/share/chezmoi/.chezmoiscripts/run_script-two.sh --
#!/bin/sh

echo "script two"
