force deletion of .pyc files (#17109)

This commit is contained in:
Josh Smift 2016-08-16 18:43:10 -04:00 committed by René Moser
parent f4237b2151
commit 81d7e132f9

View file

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