diff options
| author | coqbot-app[bot] | 2020-12-16 14:36:57 +0000 |
|---|---|---|
| committer | GitHub | 2020-12-16 14:36:57 +0000 |
| commit | 41cf9c19887734e5734f150059825e85ba55cc5a (patch) | |
| tree | 2b59ffc08cf1c9a20f319e34dd659e5480d5f3c8 /dev/ci | |
| parent | 88c77bf369a910e72951b69b4e272dd50a982bf7 (diff) | |
| parent | faafe8bfb97e7b05afbcc903cc946d9fca038df5 (diff) | |
Merge PR #13644: Fix overlay system: projects need to be loaded before overlays.
Reviewed-by: gares
Diffstat (limited to 'dev/ci')
| -rwxr-xr-x | dev/ci/ci-basic-overlay.sh | 7 | ||||
| -rw-r--r-- | dev/ci/ci-common.sh | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/dev/ci/ci-basic-overlay.sh b/dev/ci/ci-basic-overlay.sh index b65430aa51..97d9537508 100755 --- a/dev/ci/ci-basic-overlay.sh +++ b/dev/ci/ci-basic-overlay.sh @@ -7,11 +7,10 @@ declare -a projects # the list of project repos that can be be overlayed # checks if the given argument is a known project function is_in_projects { - local rc=1 - for x in ${projects[@]}; do - if [ "$1" = "$x" ]; then rc=0; fi; + for x in "${projects[@]}"; do + if [ "$1" = "$x" ]; then return 0; fi; done - return rc + return 1 } # project <name> <giturl> <ref> [<archiveurl>] diff --git a/dev/ci/ci-common.sh b/dev/ci/ci-common.sh index fdba690155..8d8f78e10c 100644 --- a/dev/ci/ci-common.sh +++ b/dev/ci/ci-common.sh @@ -73,14 +73,14 @@ function overlay() } set +x +# shellcheck source=ci-basic-overlay.sh +. "${ci_dir}/ci-basic-overlay.sh" + for overlay in "${ci_dir}"/user-overlays/*.sh; do # shellcheck source=/dev/null # the directoy can be empty if [ -e "${overlay}" ]; then . "${overlay}"; fi done - -# shellcheck source=ci-basic-overlay.sh -. "${ci_dir}/ci-basic-overlay.sh" set -x # [git_download project] will download [project] and unpack it |
