diff --git a/docs/shell-split-recipes.md b/docs/shell-split-recipes.md index 9a0fd51e..6909909f 100644 --- a/docs/shell-split-recipes.md +++ b/docs/shell-split-recipes.md @@ -129,6 +129,28 @@ pre-existing, both a real bug: a failed `cd` runs the next command in the caller's directory. They only surface on splitting because a moved function gets linted in isolation. Fix with `|| die` / `|| return 1`, never a suppression. +### Scripts that generate config need a content check + +For a setup script, "the functions still exist" is the wrong question — what +matters is that the compose file, unit or settings file it writes is unchanged. +The stubbed run cannot tell you that. Compare the moved region before and +after, ignoring comments and ordering: + +```bash +git show HEAD: