From 9b4395783576abcc566b96566efc05fd248894ae Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 31 Aug 2025 10:22:06 +0800 Subject: [PATCH] Update entrypoint.sh Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 546b7db..f9449e8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -39,11 +39,11 @@ if [[ "${INPUT_CURL_INSECURE}" == 'true' ]]; then INSECURE_OPTION="--insecure" fi -if [[ ! -f "${TARGET}" ]]; then +if [[ ! -x "${TARGET}" ]]; then curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}" chmod +x "${TARGET}" else - echo "Binary ${CLIENT_BINARY} already exists, skipping download." + echo "Binary ${CLIENT_BINARY} already exists and is executable, skipping download." fi echo "======= CLI Version Information ======="