Replace -delete with portable -exec rm {} \;

Needed on OpenBSD which does not support -delete.
pull/13393/head
Patrik Lundin 9 years ago
parent f78e27b082
commit 9f9944e355

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

Loading…
Cancel
Save