Do not run SDK scripts alone

This commit is contained in:
Zhong Lufan 2020-05-17 02:05:22 +08:00
parent 36ed1f46d7
commit e75b524c52
No known key found for this signature in database
GPG Key ID: 373C08F7FFF84D26
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
#!/bin/false
# shellcheck shell=bash
for c in openssl curl; do
if ! command -v ${c} > /dev/null; then
if ! command -v ${c} &> /dev/null; then
echo "Aliyun OpenAPI SDK: ${c} command not found"
exit 127
fi

View File

@ -1,10 +1,9 @@
# Aliyun OpenAPI Shell SDK
## 介绍
这是一个非官方的阿里云 OpenAPI Shell SDK方便 Shell 脚本调用阿里云 OpenAPISDK 主要实现了自动计算请求签名。
虽然阿里云官方有 [AliyunCLI](https://github.com/aliyun/aliyun-cli),可以在 Shell 环境下使用阿里云 OpenAPI不过某些 API (比如 SSL 证书) 它并不支持,或者说还没来得及支持,所以我就想写一个可能是最好用的阿里云 Shell SDK。
对于存储空间不充足的嵌入式设备Shell SDK 明显是更好的选择。
理论上支持所有阿里云 RPC OpenAPIRESTful OpenAPI 暂不支持,将来可能会支持。