Fix "no matches for wildcard" error in env-setup.fish script. (#58345)
See https://github.com/ansible/ansible/pull/58345#discussion_r297288979
This commit is contained in:
parent
ec1287ca7e
commit
19c6448459
1 changed files with 4 additions and 3 deletions
|
@ -65,9 +65,10 @@ set -gx ANSIBLE_LIBRARY $ANSIBLE_HOME/library
|
|||
|
||||
# Do the work in a fuction
|
||||
function gen_egg_info
|
||||
|
||||
if test -e $PREFIX_PYTHONPATH/ansible*.egg-info
|
||||
rm -rf "$PREFIX_PYTHONPATH/ansible*.egg-info"
|
||||
# Cannot use `test` on wildcards.
|
||||
# @see https://github.com/fish-shell/fish-shell/issues/5960
|
||||
if count $PREFIX_PYTHONPATH/ansible*.egg-info > /dev/null
|
||||
rm -rf $PREFIX_PYTHONPATH/ansible*.egg-info
|
||||
end
|
||||
|
||||
if [ $QUIET ]
|
||||
|
|
Loading…
Reference in a new issue