This got... long... and complicated. But I think it's a really good demonstration of getting redo to do complicated things elegantly. At least, I hope it is.
4 lines
119 B
Text
4 lines
119 B
Text
redo-ifchange "$2.load" "$2.list.sha256"
|
|
./need.sh docker
|
|
read container_id <$2.list.sha256
|
|
docker run "$container_id"
|