mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-12-04 16:09:33 +01:00
fix: refactor and enhance API and testing infrastructure
- Update DRONE_SSH_VERSION from 1.7.7 to 1.8.0 - Add missing case statement terminator in detect_client_info function Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
parent
bf84378588
commit
25259c3d50
1 changed files with 28 additions and 27 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue