From faafe8bfb97e7b05afbcc903cc946d9fca038df5 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Wed, 16 Dec 2020 10:22:56 +0100 Subject: Fix overlay system: projects need to be loaded before overlays. Also fixes is_in_projects --- dev/ci/ci-basic-overlay.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dev/ci/ci-basic-overlay.sh') 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 [] -- cgit v1.2.3