diff options
author | Elijah Lynn <elijah.lynn@agile6.com> | 2019-06-28 00:15:13 +0200 |
---|---|---|
committer | Sam Doran <sdoran@redhat.com> | 2019-06-28 00:15:11 +0200 |
commit | 19c64484599a5bfeb3b9a9dce0d380df97ce565c (patch) | |
tree | 310429805f92f731ee9a2da9504da01f88d8e4c2 /hacking | |
parent | Fix notifying handlers by using an exact match (#55624) (diff) | |
download | ansible-19c64484599a5bfeb3b9a9dce0d380df97ce565c.tar.xz ansible-19c64484599a5bfeb3b9a9dce0d380df97ce565c.zip |
Fix "no matches for wildcard" error in env-setup.fish script. (#58345)
See https://github.com/ansible/ansible/pull/58345#discussion_r297288979
Diffstat (limited to 'hacking')
-rw-r--r-- | hacking/env-setup.fish | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hacking/env-setup.fish b/hacking/env-setup.fish index ee78e2ed4b..183bcccf22 100644 --- a/hacking/env-setup.fish +++ b/hacking/env-setup.fish @@ -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 ] |