refactor: export get_yaml_array

This commit is contained in:
ER
2023-08-13 16:12:57 +03:00
parent e03ac5de80
commit c27685fae2
2 changed files with 2 additions and 2 deletions

View File

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