Skip to content

Commit

Permalink
autoenv: prevent mssing file error by grep
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermann committed Jun 25, 2020
1 parent a15d07d commit a05e72c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ elif pwd -P | egrep -v '/{''{''.*''}''}(/|$)' >/dev/null || $_venv_create; then
mkdir -p .venv
fi
fi
if ! grep .venv/Scripts/activate .venv/Scripts/activate >/dev/null && test -n "$SYSTEMROOT" -a -n "$WINDIR"; then
if test -n "$SYSTEMROOT" -a -n "$WINDIR" && ! grep .venv/Scripts/activate .venv/Scripts/activate >/dev/null; then
echo >>.venv/Scripts/activate \
'export PATH=$(echo $PATH | sed -r -e '\''s~[\\]~/~g'\'' -e s~C:~/c~); hash -r'
. .venv/Scripts/activate
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/.env
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ elif pwd -P | egrep -v '/{''{''.*''}''}(/|$)' >/dev/null || $_venv_create; then
mkdir -p .venv
fi
fi
if ! grep .venv/Scripts/activate .venv/Scripts/activate >/dev/null && test -n "$SYSTEMROOT" -a -n "$WINDIR"; then
if test -n "$SYSTEMROOT" -a -n "$WINDIR" && ! grep .venv/Scripts/activate .venv/Scripts/activate >/dev/null; then
echo >>.venv/Scripts/activate \
'export PATH=$(echo $PATH | sed -r -e '\''s~[\\]~/~g'\'' -e s~C:~/c~); hash -r'
. .venv/Scripts/activate
Expand Down

0 comments on commit a05e72c

Please sign in to comment.