소스 검색

Fixed #25222 -- Avoided installing django_bash_completion for python*-config.

Ville Skyttä 9 년 전
부모
커밋
34057730a5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      extras/django_bash_completion

+ 1 - 1
extras/django_bash_completion

@@ -61,7 +61,7 @@ unset pythons
 if command -v whereis &>/dev/null; then
     python_interpreters=$(whereis python | cut -d " " -f 2-)
     for python in $python_interpreters; do
-        pythons="${pythons} ${python##*/}"
+        [[ $python != *-config ]] && pythons="${pythons} ${python##*/}"
     done
     unset python_interpreters
     pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ")