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
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