github.com/argoproj/argo-cd/v3@v3.2.1/hack/goreman-start.sh (about) 1 #!/usr/bin/env bash 2 3 declare -a services=("controller" "api-server" "redis" "repo-server" "cmp-server" "ui" "applicationset-controller" "commit-server" "notification" "dex" "git-server" "helm-registry" "dev-mounter") 4 5 EXCLUDE="$exclude" 6 7 declare -a servicesToRun=() 8 9 if [ "$EXCLUDE" != "" ]; then 10 # Split services list by ',' character 11 readarray -t servicesToExclude < <(tr ',' '\n' <<< "$EXCLUDE") 12 13 # Find subset of items from services array that not include servicesToExclude items 14 for element in "${services[@]}" 15 do 16 found=false 17 for excludedSvc in "${servicesToExclude[@]}" 18 do 19 if [[ "$excludedSvc" == "$element" ]]; then 20 found=true 21 fi 22 done 23 if [[ "$found" == false ]]; then 24 servicesToRun+=("$element") 25 fi 26 done 27 fi 28 29 command=("goreman" "start") 30 31 for element in "${servicesToRun[@]}" 32 do 33 command+=("$element") 34 done 35 36 "${command[@]}"