From 85340e77f3d15b77dd0dc7c9df240428bfd2e30f Mon Sep 17 00:00:00 2001 From: Yadnesh Kulkarni Date: Mon, 11 Jul 2022 17:14:40 +0530 Subject: [PATCH] delete __pycache__ directory with sudo privileges Signed-off-by: Yadnesh Kulkarni Change-Id: I9cf3cd8921347eacc1effb2b197b97bc6ff3e0df --- functions-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions-common b/functions-common index e16bb27ef5..e5b07514e5 100644 --- a/functions-common +++ b/functions-common @@ -646,7 +646,7 @@ function git_clone { # remove the existing ignored files (like pyc) as they cause breakage # (due to the py files having older timestamps than our pyc, so python # thinks the pyc files are correct using them) - find $git_dest -name '*.pyc' -delete + sudo find $git_dest -name '*.pyc' -delete # handle git_ref accordingly to type (tag, branch) if [[ -n "`git show-ref refs/tags/$git_ref`" ]]; then