4 ms·
Hah, I've done something a lot like this. The numbers make the order nice and obvious. You can also use flag files to track progress and resume where you left
by adrianmonk 3y ago
Hah, I've done something a lot like this. The numbers make the order nice and obvious.
You can also use flag files to track progress and resume where you left off.
reset.sh:
#! /bin/sh
[ -d DONE ] || mkdir DONE
find DONE -type f -delete
run-all.sh:
#! /bin/sh
for s in step-*.sh
do
[ -f "DONE/$s" ] && { echo "*** (skipping $s)"; continue; }
echo "*** running $s"
./"$s" && touch "DONE/$s" || { echo "*** $s failed!"; break; }
done