mirror of
https://github.com/suitenumerique/meet.git
synced 2026-10-12 16:07:49 +00:00
919af928aa
Get the shellcheck CI job to pass again by addressing the issues it flagged across our shell scripts. Note: I am not 100% sure of every fix applied here. Reviewers should feel free to challenge specific changes and suggest better ones where relevant.
14 lines
398 B
Bash
Executable File
14 lines
398 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
HELMFILE=src/helm/helmfile.yaml
|
|
|
|
environments=$(awk '/environments:/ {flag=1; next} flag && NF {print} !NF {flag=0}' "$HELMFILE" | grep -E '^[[:space:]]{2}[a-zA-Z]+' | sed 's/^[[:space:]]*//;s/:.*//')
|
|
|
|
for env in $environments; do
|
|
echo "################### $env lint ###################"
|
|
helmfile -e "$env" -f src/helm/helmfile.yaml lint || exit 1
|
|
echo -e "\n"
|
|
done
|