Skip to content

Commit 3405773

Browse files
scoptimgraham
authored andcommitted
Fixed #25222 -- Avoided installing django_bash_completion for python*-config.
1 parent 74be214 commit 3405773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/django_bash_completion

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ unset pythons
6161
if command -v whereis &>/dev/null; then
6262
python_interpreters=$(whereis python | cut -d " " -f 2-)
6363
for python in $python_interpreters; do
64-
pythons="${pythons} ${python##*/}"
64+
[[ $python != *-config ]] && pythons="${pythons} ${python##*/}"
6565
done
6666
unset python_interpreters
6767
pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ")

0 commit comments

Comments
 (0)