Readit News logoReadit News
mwdomino commented on Do-nothing scripting: the key to gradual automation (2019)   blog.danslimmon.com/2019/... · Posted by u/tehnub
vagab0nd · 10 months ago
> but it can't be interrupted

I'm glad this is mentioned! This is why instead of a Bash script, I use a Makefile. Each step is a rule with a *.done name, that generates a .done file once it's done. I can interrupt it any time, modify the script to fix something, and `make` to resume.

But writing that Makefile is a PITA. Is there a better solution?

mwdomino · 10 months ago
I’ve just switched to using just https://github.com/casey/just for my makefiles that were really just a collection of small snippets and it’s worked wonderfully

u/mwdomino

KarmaCake day3July 7, 2022View Original