Commit cba4642d by Luke Rohde

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

parent 647e48f7
...@@ -57,10 +57,10 @@ fi ...@@ -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"
) )
......
...@@ -43,7 +43,7 @@ if test -e $PREFIX_PYTHONPATH/ansible*.egg-info ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment