mirror of
https://github.com/appleboy/scp-action.git
synced 2025-08-14 12:45:12 +00:00
check detect_client(${TARGET}) exist for cache
This commit is contained in:
parent
7f18bf0ec8
commit
6cbdec11ac
@ -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 ======="
|
||||
|
Loading…
x
Reference in New Issue
Block a user