[feature] 更新log相关

This commit is contained in:
lichx
2025-01-22 21:25:04 +08:00
parent fc676746cf
commit 069d5119c3
2 changed files with 7 additions and 4 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
#!/usr/bin/env bash
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
MAA_PY="$SCRIPT_DIR/ArknightsMaaConfig/maa.py"
MAA_LOG_DIR="${MAA_LOG:-/var/log/maa.log}"
if [ -x "$MAA_PY" ]; then
"$MAA_PY"
"$MAA_PY" > "$MAA_LOG_DIR" 2>&1
else
python3 "$MAA_PY"
python3 "$MAA_PY" > "$MAA_LOG_DIR" 2>&1
fi