Skip to content

Commit

Permalink
fix: #61
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockytkg authored Jan 12, 2025
1 parent 08dd2d3 commit 291904f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ run_main_script() {
fi
}

# 获取脚本所在的绝对路径并切换到该目录
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "$SCRIPT_DIR" || { echo "无法切换到脚本目录: $SCRIPT_DIR"; exit 1; }

# 检查是否是首次运行
if [ ! -f ".initialized" ]; then
echo "首次运行脚本,执行初始化..."
Expand Down

0 comments on commit 291904f

Please sign in to comment.