@ -8,7 +8,7 @@ export GITHUB="true"
GITHUB_ACTION_PATH = " ${ GITHUB_ACTION_PATH %/ } "
GITHUB_ACTION_PATH = " ${ GITHUB_ACTION_PATH %/ } "
DRONE_SSH_RELEASE_URL = " ${ DRONE_SSH_RELEASE_URL :- https : //github.com/appleboy/drone-ssh/releases/download } "
DRONE_SSH_RELEASE_URL = " ${ DRONE_SSH_RELEASE_URL :- https : //github.com/appleboy/drone-ssh/releases/download } "
DRONE_SSH_VERSION = " ${ DRONE_SSH_VERSION :- 1 . 7.7 } "
DRONE_SSH_VERSION = " ${ DRONE_SSH_VERSION :- 1 . 8.0 } "
function detect_client_info( ) {
function detect_client_info( ) {
if [ -n " ${ SSH_CLIENT_OS - } " ] ; then
if [ -n " ${ SSH_CLIENT_OS - } " ] ; then
@ -31,6 +31,7 @@ function detect_client_info() {
echo "Supported platforms: Linux, Darwin and Windows." >& 2
echo "Supported platforms: Linux, Darwin and Windows." >& 2
echo "Bailing out." >& 2
echo "Bailing out." >& 2
exit 2
exit 2
; ;
esac
esac
fi
fi
@ -40,10 +41,10 @@ function detect_client_info() {
local machine
local machine
machine = " $( uname -m) "
machine = " $( uname -m) "
case " ${ machine } " in
case " ${ machine } " in
x86_64*| i?86_64*| amd64*)
x86_64* | i?86_64* | amd64*)
CLIENT_ARCH = "amd64"
CLIENT_ARCH = "amd64"
; ;
; ;
aarch64*| arm64*)
aarch64* | arm64*)
CLIENT_ARCH = "arm64"
CLIENT_ARCH = "arm64"
; ;
; ;
*)
*)