1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Use find ... -delete instead of non-portable globbing

This commit is contained in:
Luke Rohde 2015-09-02 17:05:16 -04:00
parent 647e48f776
commit cba4642d8d
2 changed files with 3 additions and 3 deletions

View file

@ -57,10 +57,10 @@ fi
cd "$ANSIBLE_HOME" cd "$ANSIBLE_HOME"
if [ "$verbosity" = silent ] ; then if [ "$verbosity" = silent ] ; then
gen_egg_info > /dev/null 2>&1 gen_egg_info > /dev/null 2>&1
rm **/*.pyc > /dev/null 2>&1 find . -type f -name "*.pyc" -delete > /dev/null 2>&1
else else
gen_egg_info gen_egg_info
rm **/*.pyc find . -type f -name "*.pyc" -delete
fi fi
cd "$current_dir" cd "$current_dir"
) )

View file

@ -43,7 +43,7 @@ if test -e $PREFIX_PYTHONPATH/ansible*.egg-info
rm -r $PREFIX_PYTHONPATH/ansible*.egg-info rm -r $PREFIX_PYTHONPATH/ansible*.egg-info
end end
mv ansible*egg-info $PREFIX_PYTHONPATH mv ansible*egg-info $PREFIX_PYTHONPATH
rm **/*.pyc find . -type f -name "*.pyc" -delete
popd popd