Add helper scripts to run all other get_data scripts for layers

This commit is contained in:
Chandler Swift 2023-07-03 13:31:20 -05:00
parent 8cd758a780
commit 010f28e6d9
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

10
data/get_all_data.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
cd $(dirname $0)
find ../ -name "get_data.*" \! -executable | grep . >/dev/null \
&& echo "Non-executable files found; consider running:" \
&& find ../ -name "get_data.*" \! -executable -exec echo chmod +x {} \; \
&& exit 1
find ../ -name "get_data.*" -executable -exec sh -c "echo processing {}; {} | sed --unbuffered 's/^/ /'" \;