1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-24 06:15:46 +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 if [ "${PARAM_DELETE_EXISTING}" = "true" ] ; then
cleandir cleandir || true
fi fi
test -z "${PARAM_HTTP_PROXY}" || export HTTP_PROXY="${PARAM_HTTP_PROXY}" test -z "${PARAM_HTTP_PROXY}" || export HTTP_PROXY="${PARAM_HTTP_PROXY}"