Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for stripping TinyPilot marker sections (#1720)
Related #1710. This PR adds a unified script to remove TinyPilot marker sections from files. We will [use this script in a subsequent PR](#1722) to simplify the corresponding instances in the [unset-static-ip](https://github.com/tiny-pilot/tinypilot/blob/2e211199a21a2a6c285c5d1d2ff60eff6afa77d4/debian-pkg/opt/tinypilot-privileged/scripts/unset-static-ip#L64-L81) and [change-hostname](https://github.com/tiny-pilot/tinypilot/blob/8e99d5a666df12d851b14dd4276e8b95ab958493/debian-pkg/opt/tinypilot-privileged/scripts/change-hostname#L62-L79) privileged scripts. ## Notes - Unless someone feels strongly about the [originally mentioned `remove-tinypilot-lines` script name](https://github.com/tiny-pilot/tinypilot/issues/1710#:~:text=opt/tinypilot/scripts/-,remove%2Dtinypilot%2Dlines,-%3C%20example.conf) (or any other name), I thought that `strip-marker-sections` sounded most expressive. - I added a comment to the `lib/markers.sh` file, to explain the marker idea in a bit more detail. - There will be automated bash tests for this in [a subsequent PR](#1721). <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1720"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a> --------- Co-authored-by: Jan Heuermann <[email protected]>
- Loading branch information