File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ export PIP_REQUIRE_VIRTUALENV=true
14
14
15
15
16
16
# Prefer use of a Pipfile and pipenv for dependency management
17
- if [ -f " Pipfile" ] && [ -n " $( pipenv --version 2> /dev/null) " ]; then
17
+ if [[ -f " Pipfile" ]] && [[ -n " $( pipenv --version 2> /dev/null) " ] ]; then
18
18
echo " ==> Installing Pipfile dependencies"
19
19
pipenv install --dev --skip-lock
20
20
21
- elif [ -f " requirements.txt" ]; then
21
+ elif [[ -f " requirements.txt" ] ]; then
22
22
echo " ==> Installing requirements.txt dependencies"
23
23
24
24
# Check for an active virtual environment, or look for one in the project directory
25
- if [ -n " $( python -c ' import sys; print (sys.real_prefix)' 2> /dev/null) " ]; then
25
+ if [[ -n " $( python -c ' import sys; print (sys.real_prefix)' 2> /dev/null) " ] ]; then
26
26
echo " Installing packages in the active virtual environment"
27
- elif [ -f " venv/bin/activate" ]; then
27
+ elif [[ -f " venv/bin/activate" ] ]; then
28
28
echo " Installing packages in the project's venv virtual environment"
29
29
source venv/bin/activate
30
- elif [ -f " .venv/bin/activate" ]; then
30
+ elif [[ -f " .venv/bin/activate" ] ]; then
31
31
echo " Installing packages in the project's .venv virtual environment"
32
32
source .venv/bin/activate
33
33
else
You can’t perform that action at this time.
0 commit comments