The README for scripts has an incorrect use of the `set`. Where it says to use: set -oue pipefail it should be: set -euo pipefail since `pipefail` is an option consumed by `set -o`. More information: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
16 lines
338 B
Bash
16 lines
338 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Tell build process to exit if there are any errors.
|
|
set -euo pipefail
|
|
|
|
get_yaml_array SCRIPTS '.scripts[]' "$1"
|
|
|
|
cd "$CONFIG_DIRECTORY/scripts"
|
|
|
|
# Make every script executable
|
|
find "$PWD" -type f -exec chmod +x {} \;
|
|
|
|
for SCRIPT in "${SCRIPTS[@]}"; do
|
|
echo "Running script $SCRIPT"
|
|
eval "$PWD/$SCRIPT"
|
|
done
|