From 31938fd2deef8efe116ff3221433f1000249afad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me>
Date: Fri, 10 May 2024 16:40:07 +0200
Subject: [PATCH] fix: cibuildwheel.sh script

---
 .gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
index 16c39da00..a868d5573 100755
--- a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
+++ b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 set -x
 set -e
-if [[ $repo ==  "" ]]; then # case for aidge_ core
+if [[ $AIDGE_DEPENDENCIES ==  "" ]]; then # case for aidge_ core
   mkdir -p build # creating build if its not already there to hold the build of cpp files
   rm -rf build/* # build from scratch
 else 
@@ -20,6 +20,7 @@ else
     mkdir -p build # creating build if its not already there to hold the build of cpp files
     rm -rf build/* # build from scratch
     pip install . -v
+    cd -
   done
 fi
 set +x
-- 
GitLab