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

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

Needed on OpenBSD which does not support -delete.
This commit is contained in:
Patrik Lundin 2015-12-02 11:06:09 +01:00
parent f78e27b082
commit 9f9944e355

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
find . -type f -name "*.pyc" -delete > /dev/null 2>&1 find . -type f -name "*.pyc" -exec rm {} \; > /dev/null 2>&1
else else
gen_egg_info gen_egg_info
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -exec rm {} \;
fi fi
cd "$current_dir" cd "$current_dir"
) )