From 9f9944e35524fd4b541c57ef1a5ffa9a2a1dd034 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Wed, 2 Dec 2015 11:06:09 +0100 Subject: [PATCH] Replace -delete with portable -exec rm {} \; Needed on OpenBSD which does not support -delete. --- hacking/env-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hacking/env-setup b/hacking/env-setup index 433fe7843d..c2872dcc18 100644 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -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" )