From b5810f8ca51bc7d1f4cfc38a9507fb39464193a5 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Thu, 29 Jun 2023 09:31:57 -0400 Subject: [PATCH] If submodule doesn't exist, initialize --- scripts/install_yolov5.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install_yolov5.sh b/scripts/install_yolov5.sh index 009e0c8..ddcb860 100644 --- a/scripts/install_yolov5.sh +++ b/scripts/install_yolov5.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ ! -d yolov5/.git ]; then + git module update --init --recursive +fi + cd yolov5 python -m venv env source env/bin/activate