Skip to content

Commit 28dc7d1

Browse files
authored
Merge pull request #6 from dimacurrentai/generic_run
Proper `diff` and fail with the Mermaid test.
2 parents 0598383 + 70cebda commit 28dc7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

step03_mermaid/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ docker run --rm -t demo | tee >>.mermaid.md
99
echo '```' >>.mermaid.md
1010

1111
# TODO(dkorolev): Fail with a nicer message, and add a git hook.
12-
diff mermaid.md .mermaid.md || echo 'Your `mermaid.md` file is not up to date.'
12+
diff -w mermaid.md .mermaid.md && echo "Passed!" || (echo 'Your `mermaid.md` file is not up to date.' && exit 1)

0 commit comments

Comments
 (0)