You could reduce check-shutdown.sh to the ssh part and prevent-shutdown.sh to “run long-running-command using ssh”.
That’s elegant in some sense, but somehow doesn’t feel like the right way to do it.
You could reduce check-shutdown.sh to the ssh part and prevent-shutdown.sh to “run long-running-command using ssh”.
That’s elegant in some sense, but somehow doesn’t feel like the right way to do it.