2024-06-12 15:01:54 +08:00
|
|
|
#!/bin/bash
|
|
|
|
SHELL_DIR=$(dirname $0)
|
|
|
|
echo "change dir to $SHELL_DIR"
|
|
|
|
cd "$SHELL_DIR"
|
|
|
|
|
2024-07-31 16:37:34 +08:00
|
|
|
# 获取项目相关参数
|
|
|
|
if [ -f ./project_env.sh ]; then
|
|
|
|
source ./project_env.sh
|
|
|
|
echo "found the project_env file"
|
|
|
|
fi
|
|
|
|
|
2024-06-12 15:01:54 +08:00
|
|
|
# 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"
|
|
|
|
|
2024-07-31 16:37:34 +08:00
|
|
|
sh to_wechat_robot.sh "$INNER_ROBOT" "@all" "$MSG_TEXT"
|