Files
stock/cron/daily_snap.sh
2025-08-12 16:06:22 +08:00

20 lines
395 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 项目基础路径
PROJ_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
echo "项目基础路径: ${PROJ_DIR}"
export DB_HOST=127.0.0.1
cd "${PROJ_DIR}" || exit 1
# 从命令行读取参数并传递给python脚本
if [ $# -gt 0 ]; then
python3 -m src.static.daily_snap_em --list="$@" --notify
else
python3 -m src.static.daily_snap_em --list="cn" --notify
fi