From 6cbdec11ac32203285f02abff516cd08c360cf11 Mon Sep 17 00:00:00 2001 From: kekxv Date: Wed, 30 Apr 2025 11:00:22 +0800 Subject: [PATCH] check detect_client(${TARGET}) exist for cache --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index bc99822..c0aa652 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -39,7 +39,10 @@ if [[ "${INPUT_CURL_INSECURE}" == 'true' ]]; then INSECURE_OPTION="--insecure" fi -curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}" +echo "detect client path: ${TARGET}" +if [ ! -f "${TARGET}" ];then + curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}" +fi chmod +x "${TARGET}" echo "======= CLI Version Information ======="