Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Double quote to prevent globbing ...
  • Loading branch information
yssource committed Mar 1, 2021
1 parent 0d4a66d commit 0bee733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stdlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,8 @@ const StdLib = "#!/usr/bin/env bash\n" +
" VIRTUAL_ENV=$(pipenv --venv 2>/dev/null ; true)\n" +
"\n" +
" if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then\n" +
" if [[ $PYTHON_VERSION ]]; then\n" +
" pipenv --python $PYTHON_VERSION\n" +
" if [[ \"$PYTHON_VERSION\" ]]; then\n" +
" pipenv --python \"$PYTHON_VERSION\"\n" +
" fi\n" +
" pipenv install --dev\n" +
" VIRTUAL_ENV=$(pipenv --venv)\n" +
Expand Down
4 changes: 2 additions & 2 deletions stdlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,8 @@ layout_pipenv() {
VIRTUAL_ENV=$(pipenv --venv 2>/dev/null ; true)

if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then
if [[ $PYTHON_VERSION ]]; then
pipenv --python $PYTHON_VERSION
if [[ "$PYTHON_VERSION" ]]; then
pipenv --python "$PYTHON_VERSION"
fi
pipenv install --dev
VIRTUAL_ENV=$(pipenv --venv)
Expand Down

0 comments on commit 0bee733

Please sign in to comment.