mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-02 19:38:10 +00:00
refactor: export get_yaml_array
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user