Skip to content

Commit

Permalink
Refs #23919 -- Removed Python 2 reference in django_bash_completion.
Browse files Browse the repository at this point in the history
  • Loading branch information
atombrella authored and timgraham committed Jul 10, 2017
1 parent 31a2af1 commit 4af88cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/django_bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ _python_django_completion()
{
if [[ ${COMP_CWORD} -ge 2 ]]; then
local PYTHON_EXE=${COMP_WORDS[0]##*/}
echo $PYTHON_EXE | egrep "python([2-9]\.[0-9])?" >/dev/null 2>&1
echo $PYTHON_EXE | egrep "python([3-9]\.[0-9])?" >/dev/null 2>&1
if [[ $? == 0 ]]; then
local PYTHON_SCRIPT=${COMP_WORDS[1]##*/}
echo $PYTHON_SCRIPT | egrep "manage\.py|django-admin(\.py)?" >/dev/null 2>&1
Expand Down

0 comments on commit 4af88cc

Please sign in to comment.