dev-python/typer: fix sed expression

This commit is contained in:
odrling 2024-04-05 23:46:32 +02:00
parent 3d1fbe5892
commit ba96c101ad
No known key found for this signature in database
GPG key ID: EC907F69A27A90C5

View file

@ -77,7 +77,7 @@ typer_gencomp() {
compfile="$(typer_get_comp "${@}")"
_TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1 python -m typer --show-completion "${shell}" |
sed 's/python -m //g ; s/_PYTHON _M //g ; s/python_m/g' > "${compfile}" ||
sed 's/python -m //g ; s/_PYTHON _M //g ; s/python_m//g' > "${compfile}" ||
die "failed to generate ${shell} completion"
}