Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
feat: script runner module
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Aug 13, 2023
1 parent cb06318 commit e03ac5d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/script/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
# Tell build process to exit if there are any errors.
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

0 comments on commit e03ac5d

Please sign in to comment.