Commit 35842ec7 authored by 白秀江's avatar 白秀江

更新send_ding.sh

parent a28f1cc3
......@@ -247,22 +247,6 @@ function main() {
sendDingMessage "${DING_URL}" "${DING_MESSAGE}"
}
# 判断参数个数
if [ $# -eq 0 ];
then
usage
exit 1
fi
# getopt 命令行参数
if ! ARGS=$(getopt -o vAa:t:T:c:m: --long help,version -n "${SCRIPT_NAME}" -- "$@")
then
# 无效选项,则退出
exit 1
fi
# 命令行参数格式化
eval set -- "${ARGS}"
while [ -n "$1" ]
do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment