Avoid variable name conflicts

This commit is contained in:
Zhong Lufan 2022-06-20 00:51:46 +08:00
parent 0d407450dc
commit e23e702b4e
No known key found for this signature in database
GPG Key ID: BE2B3A1E76AD7D04
1 changed files with 4 additions and 4 deletions

View File

@ -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 <http_method> <host> <api_version> <api_action> [<--key> <value>...]
aliapi_rpc() {