diff --git a/hacking/env-setup b/hacking/env-setup index f8b973b1a4..8ff6362df9 100644 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -36,10 +36,10 @@ expr "$MANPATH" : "${PREFIX_MANPATH}.*" > /dev/null || export MANPATH="$PREFIX_M gen_egg_info() { python setup.py egg_info - if [ -e "$PREFIX_PYTHONPATH/ansible*.egg-info" ] ; then - rm -r "$PREFIX_PYTHONPATH/ansible*.egg-info" + if [ -e "$PREFIX_PYTHONPATH/ansible.egg-info" ] ; then + rm -r "$PREFIX_PYTHONPATH/ansible.egg-info" fi - mv "ansible*.egg-info" "$PREFIX_PYTHONPATH" + mv "ansible.egg-info" "$PREFIX_PYTHONPATH" } if [ "$ANSIBLE_HOME" != "$PWD" ] ; then