mirror of
https://github.com/zebrajr/ansible.git
synced 2026-01-15 12:15:19 +00:00
Use find ... -delete instead of non-portable globbing
This commit is contained in:
@@ -57,10 +57,10 @@ fi
|
||||
cd "$ANSIBLE_HOME"
|
||||
if [ "$verbosity" = silent ] ; then
|
||||
gen_egg_info > /dev/null 2>&1
|
||||
rm **/*.pyc > /dev/null 2>&1
|
||||
find . -type f -name "*.pyc" -delete > /dev/null 2>&1
|
||||
else
|
||||
gen_egg_info
|
||||
rm **/*.pyc
|
||||
find . -type f -name "*.pyc" -delete
|
||||
fi
|
||||
cd "$current_dir"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user