Forest_Client/Tool/BuildTool/to_inner_wechat_robot.sh

23 lines
494 B
Bash
Executable File

#!/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"
sh to_wechat_robot.sh "$INNER_ROBOT" "@all" "$MSG_TEXT"