From fffc1daed77648eb34a398c8a67a6b6d7711ff8c Mon Sep 17 00:00:00 2001 From: lichx Date: Tue, 14 Jan 2025 23:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0run=5Fall.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_all.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run_all.sh b/run_all.sh index eacb096..c85f557 100755 --- a/run_all.sh +++ b/run_all.sh @@ -1,2 +1,9 @@ #!/usr/bin/env bash -./ArknightsMaaConfig/maa.py +SCRIPT_DIR=$(dirname $(readlink -f "$0")) +MAA_PY="$SCRIPT_DIR/ArknightsMaaConfig/maa.py" + +if [ -x "$MAA_PY" ]; then + "$MAA_PY" +else + python3 "$MAA_PY" +fi \ No newline at end of file