feat: script runner module

This commit is contained in:
ER
2023-08-13 16:08:31 +03:00
parent cb0631831c
commit e03ac5de80

View File

@@ -3,4 +3,11 @@
# Tell build process to exit if there are any errors.
set -oue pipefail
echo "$1"
readarray RUN < <(yq -o=j -I=0 '.run[]' "$1" )
cd "$CONFIG_DIRECTORY/scripts"
for CMD in "${RUN[@]}"; do
echo "Running command: $CMD"
$CMD
done