Forest_Client/Tool/BuildTool/to_outer_wechat_robot.sh

26 lines
581 B
Bash

#!/bin/bash
SHELL_DIR=$(dirname $0)
echo "change dir to $SHELL_DIR"
cd "$SHELL_DIR"
# 获取项目相关参数
if [ -f ./project_env.sh ]; then
source ./project_env.sh
echo "found the project_env file"
fi
# Check if exactly one arguments are provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <message>"
echo "current param count : $#"
exit 1
fi
# Assign the input arguments to variables
MSG_TEXT="$1"
echo "$MSG_TEXT"
# PHXH
sh to_wechat_robot.sh "$OUTER_ROBOT_PHXH" "@all" "$MSG_TEXT"
# NLD委员会
sh to_wechat_robot.sh "$OUTER_ROBOT_NLD" "@all" "$MSG_TEXT"