4 ms·
There's a bit of code duplication[0] that often emerges as a result of parsing command-line arguments in shell scripts. The duplication can be eliminated by def
by thangalin 6y ago
There's a bit of code duplication[0] that often emerges as a result of parsing command-line arguments in shell scripts. The duplication can be eliminated by defining[1] the set of arguments to pass into a reusable template script[2].
[0]: https://dave.autonoma.ca/blog/2019/06/16/typesetting-markdown-part-3/#eliminate-code-duplication https://dave.autonoma.ca/blog/2019/06/16/typesetting-markdow...
[1]: https://github.com/DaveJarvis/keenwrite/blob/master/installer#L34 https://github.com/DaveJarvis/keenwrite/blob/master/installe...
[2]: https://github.com/DaveJarvis/keenwrite/blob/master/build-template https://github.com/DaveJarvis/keenwrite/blob/master/build-te...