Skip to content

Commit db2fa9d

Browse files
❌ Codacy found a critical Error Prone issue: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
1 parent cb45e05 commit db2fa9d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

setup.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
# Incase we ever decide to use lfs for the models
24
git lfs install
35
git lfs pull
@@ -8,6 +10,16 @@ if [ ! -d ".venv" ]; then
810
python3 -m venv .venv
911
fi
1012

13+
# check if we are in active venv, if not activate it
14+
git lfs install
15+
git lfs pull
16+
17+
# Not in a virtual environment, do we need to create one?
18+
if [ ! -d ".venv" ]; then
19+
echo "Creating virtual environment"
20+
python3 -m venv .venv
21+
fi
22+
1123
# check if we are in active venv, if not activate it
1224
if [ -z "$VIRTUAL_ENV" ]; then
1325
echo "Not in a virtual environment, activating venv"

0 commit comments

Comments
 (0)