If submodule doesn't exist, initialize

This commit is contained in:
Matt McWilliams 2023-06-29 09:31:57 -04:00
parent 849ae58f9b
commit b5810f8ca5
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
if [ ! -d yolov5/.git ]; then
git module update --init --recursive
fi
cd yolov5 cd yolov5
python -m venv env python -m venv env
source env/bin/activate source env/bin/activate