diff --git a/AliyunOpenApiSDK.sh b/AliyunOpenApiSDK.sh index 27943cd..1d98ddf 100644 --- a/AliyunOpenApiSDK.sh +++ b/AliyunOpenApiSDK.sh @@ -1,12 +1,12 @@ #!/bin/bash -for _command in openssl curl; do - if ! command -v $_command &> /dev/null; then - echo "Aliyun OpenAPI SDK: $_command command not found" +for _aliapi_command in openssl curl; do + if ! command -v $_aliapi_command &> /dev/null; then + echo "Aliyun OpenAPI SDK: $_aliapi_command command not found" exit 127 fi done -unset _command +unset _aliapi_command # aliapi_rpc [<--key> ...] aliapi_rpc() {