aboutsummaryrefslogtreecommitdiff
path: root/dev/ci/ci-basic-overlay.sh
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-12-16 10:22:56 +0100
committerGaëtan Gilbert2020-12-16 10:25:55 +0100
commitfaafe8bfb97e7b05afbcc903cc946d9fca038df5 (patch)
tree34ffdd5643de382ebc2f597abff09ff7732c20d7 /dev/ci/ci-basic-overlay.sh
parent46c55ced3d1a78f63b3b50fc12d9760663e87e57 (diff)
Fix overlay system: projects need to be loaded before overlays.
Also fixes is_in_projects
Diffstat (limited to 'dev/ci/ci-basic-overlay.sh')
-rwxr-xr-xdev/ci/ci-basic-overlay.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/dev/ci/ci-basic-overlay.sh b/dev/ci/ci-basic-overlay.sh
index dd683c96a9..18c58c423d 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>]