Fix "no matches for wildcard" error in env-setup.fish script. (#58345)

See https://github.com/ansible/ansible/pull/58345#discussion_r297288979
pull/58510/head
Elijah Lynn 5 years ago committed by Sam Doran
parent ec1287ca7e
commit 19c6448459

@ -65,9 +65,10 @@ set -gx ANSIBLE_LIBRARY $ANSIBLE_HOME/library
# Do the work in a fuction # Do the work in a fuction
function gen_egg_info function gen_egg_info
# Cannot use `test` on wildcards.
if test -e $PREFIX_PYTHONPATH/ansible*.egg-info # @see https://github.com/fish-shell/fish-shell/issues/5960
rm -rf "$PREFIX_PYTHONPATH/ansible*.egg-info" if count $PREFIX_PYTHONPATH/ansible*.egg-info > /dev/null
rm -rf $PREFIX_PYTHONPATH/ansible*.egg-info
end end
if [ $QUIET ] if [ $QUIET ]

Loading…
Cancel
Save