From e23e702b4e9e5d144e863ea4caf662f71c924067 Mon Sep 17 00:00:00 2001 From: Zhong Lufan Date: Mon, 20 Jun 2022 00:51:46 +0800 Subject: [PATCH] Avoid variable name conflicts --- AliyunOpenApiSDK.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() {