diff --git a/modules/script/script.sh b/modules/script/script.sh index e74eaead99..d71a78aacc 100644 --- a/modules/script/script.sh +++ b/modules/script/script.sh @@ -3,4 +3,11 @@ # Tell build process to exit if there are any errors. set -oue pipefail -echo "$1" \ No newline at end of file +readarray RUN < <(yq -o=j -I=0 '.run[]' "$1" ) + +cd "$CONFIG_DIRECTORY/scripts" + +for CMD in "${RUN[@]}"; do + echo "Running command: $CMD" + $CMD +done \ No newline at end of file