I’ve been writing oversized shell scripts for ages, often just for the moment in Bash.
Then if I need something similar for a Dockerfile, I’d write that also. The duplication is a sad feeling.
So I described what I wanted, /bin/sh with posix, detailed what both scripts do, and it merged both scripts without ever seeing their full codebases! (Both for work and my own code, I never share code unless it’s already in a public repository)
I fired up ShellCheck linter and zero issues. At work I Replaced both tech-debt laden scripts with a repo and people said they’d use it too, NICE cleanup, and how long did it take? :-)
Relating back to OP, that sounds like an early win on a long campaign to boredom. I hope you continue to enjoy it though, there certainly nothing inevitable about ennui.