Update entrypoint.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>pull/210/head
parent
775954b583
commit
9b43957835
|
@ -39,11 +39,11 @@ if [[ "${INPUT_CURL_INSECURE}" == 'true' ]]; then
|
||||||
INSECURE_OPTION="--insecure"
|
INSECURE_OPTION="--insecure"
|
||||||
fi
|
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}"
|
curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}"
|
||||||
chmod +x "${TARGET}"
|
chmod +x "${TARGET}"
|
||||||
else
|
else
|
||||||
echo "Binary ${CLIENT_BINARY} already exists, skipping download."
|
echo "Binary ${CLIENT_BINARY} already exists and is executable, skipping download."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "======= CLI Version Information ======="
|
echo "======= CLI Version Information ======="
|
||||||
|
|
Loading…
Reference in New Issue