Skip to content

Commit eaeb069

Browse files
committed
chore(cli): enhance curl command with silent mode and redirects
- Add silent mode and follow redirects to curl command in entrypoint.sh Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 06fa62e commit eaeb069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DOWNLOAD_URL_PREFIX="${DRONE_SSH_RELEASE_URL}/v${DRONE_SSH_VERSION}"
6161
CLIENT_BINARY="drone-ssh-${DRONE_SSH_VERSION}-${CLIENT_PLATFORM}-${CLIENT_ARCH}"
6262
TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
6363
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
64-
curl -fL --retry 5 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
64+
curl -fsSL --retry 5 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
6565
chmod +x ${TARGET}
6666
echo "======= CLI Version ======="
6767
sh -c "${TARGET} --version" # print version

0 commit comments

Comments
 (0)