1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00

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 <chmouel@redhat.com>
This commit is contained in:
Chmouel Boudjnah 2023-01-23 12:24:56 +01:00 committed by tekton-robot
parent baf796b714
commit 81bf7dc561

View File

@ -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}"