Fix kdjango with pgcli

This commit is contained in:
Gabriel Augendre 2022-04-19 15:22:35 +02:00
parent 80fde827a1
commit 4c95c12536

View file

@ -27,7 +27,7 @@ function kdjango --description 'Pop into the shell of django pod of the current
set command ./manage.py shell set command ./manage.py shell
else if set -q _flag_d else if set -q _flag_d
if kubectl exec -it $pod -- which pgcli &> /dev/null if kubectl exec -it $pod -- which pgcli &> /dev/null
set command 'pgcli $(./manage.py sqldsn --quiet --style=uri)' set command sh -c 'pgcli $(./manage.py sqldsn --quiet --style=uri)'
else else
set command ./manage.py dbshell set command ./manage.py dbshell
end end