From 81bf7dc5610d5fa17281940a72a6377604105cea Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Mon, 23 Jan 2023 12:24:56 +0100 Subject: [PATCH] git-clone don't fail when cleandir has failed when trying to cleandir, there could be some non owner files in there (ie: lost+found) let's not fail when failed to clean. Signed-off-by: Chmouel Boudjnah --- task/git-clone/0.9/git-clone.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task/git-clone/0.9/git-clone.yaml b/task/git-clone/0.9/git-clone.yaml index daa9e147..0ac2d723 100644 --- a/task/git-clone/0.9/git-clone.yaml +++ b/task/git-clone/0.9/git-clone.yaml @@ -213,7 +213,7 @@ spec: } if [ "${PARAM_DELETE_EXISTING}" = "true" ] ; then - cleandir + cleandir || true fi test -z "${PARAM_HTTP_PROXY}" || export HTTP_PROXY="${PARAM_HTTP_PROXY}"