Skip to content

Commit

Permalink
[#53309] scripts: prepare_zephyr_env: Fix requirements check
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Torhan <mtorhan@antmicro.com>
  • Loading branch information
m-torhan authored and glatosinski committed Apr 3, 2024
1 parent d0620d7 commit c3fe6d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/prepare_zephyr_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ fi
source .venv/bin/activate

# check if west and other project dependencies are installed
if $(python3 -m pip freeze -r requirements.txt | grep "not installed"); then
if [ -z "$(python3 -m pip freeze -r requirements.txt 2>&1 | grep "not installed")" ]; then
echo "Project dependencies installed"
else
echo "Installing missing dependencies"
python3 -m pip install pip setuptools --upgrade
python3 -m pip install -r requirements.txt
fi

Expand Down

0 comments on commit c3fe6d9

Please sign in to comment.