mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-06 05:17:45 +00:00
feat: script runner module
This commit is contained in:
@@ -3,4 +3,11 @@
|
|||||||
# Tell build process to exit if there are any errors.
|
# Tell build process to exit if there are any errors.
|
||||||
set -oue pipefail
|
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
|
||||||
Reference in New Issue
Block a user