Files
secureblue/modules/script/script.sh
ER 18d1b3d4cd Revert "refactor: export get_yaml_array"
This reverts commit c27685fae2.

(get_yaml_array can't be used in modules since it reads from
the $RECIPE_FILE)
2023-08-13 16:15:22 +03:00

13 lines
247 B
Bash

#!/usr/bin/env bash
# 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"
for CMD in "${RUN[@]}"; do
echo "Running command: $CMD"
$CMD
done