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
1414
1515
1616# 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
1818 echo " ==> Installing Pipfile dependencies"
1919 pipenv install --dev --skip-lock
2020
21- elif [ -f " requirements.txt" ]; then
21+ elif [[ -f " requirements.txt" ] ]; then
2222 echo " ==> Installing requirements.txt dependencies"
2323
2424 # 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
2626 echo " Installing packages in the active virtual environment"
27- elif [ -f " venv/bin/activate" ]; then
27+ elif [[ -f " venv/bin/activate" ] ]; then
2828 echo " Installing packages in the project's venv virtual environment"
2929 source venv/bin/activate
30- elif [ -f " .venv/bin/activate" ]; then
30+ elif [[ -f " .venv/bin/activate" ] ]; then
3131 echo " Installing packages in the project's .venv virtual environment"
3232 source .venv/bin/activate
3333 else
You can’t perform that action at this time.
0 commit comments