From 4d377fad974a009de872ea25500bc2ceda04bb55 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Thu, 11 Jul 2024 00:25:58 +0800 Subject: [PATCH] chore: update TARGET URL for downloading client binary --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 38d2b47..4354f00 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -59,9 +59,9 @@ function detect_client_info() { detect_client_info DOWNLOAD_URL_PREFIX="${DRONE_SSH_RELEASE_URL}/v${DRONE_SSH_VERSION}" CLIENT_BINARY="drone-ssh-${DRONE_SSH_VERSION}-${CLIENT_PLATFORM}-${CLIENT_ARCH}" -# TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}" -TARGET="https://git.dsvision.net/suyiiyii/ssh-action/raw/branch/master/drone-ssh-1.7.6-linux-amd64" +TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}" +URL="https://git.dsvision.net/suyiiyii/ssh-action/raw/branch/master/drone-ssh-1.7.6-linux-amd64" echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}" -curl -fL --retry 3 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET} +curl -fL --retry 3 --keepalive-time 2 "${URL}" -o ${TARGET} chmod +x ${TARGET} sh -c "${TARGET} $*"