Skip to content

Commit 6aea656

Browse files
committed
Update installdeps
1 parent 38eb97c commit 6aea656

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

script/installdeps

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)