ci: run_ci: handle if the git dir isn't named zephyr
For cases like zephyr-test or for other reasons the repo dir might not
be called zephyr. Just use the basename of the dir instead of assuming
its called zephyr.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
diff --git a/scripts/ci/run_ci.sh b/scripts/ci/run_ci.sh
index 8e94733..9f27f52 100755
--- a/scripts/ci/run_ci.sh
+++ b/scripts/ci/run_ci.sh
@@ -86,9 +86,10 @@
if [ -n "$MAIN_CI" ]; then
# West handling
+ GIT_DIR=$(basename $PWD)
pushd ..
if [ ! -d .west ]; then
- west init -l zephyr
+ west init -l ${GIT_DIR}
west update
fi
popd