Skip to content

Commit

Permalink
feat: 增加安装判断和目录创建到fridare.sh脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
suifei committed Jul 17, 2024
1 parent 6479789 commit 08a5af5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fridare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,12 @@ check_version() {
log_info "更新本地文件..."
local script_dir=$(dirname "$0")

if [ "$is_install" = "true" ]; then
#创建目录
mkdir -p ~/fridare
script_dir=~/fridare
fi

# 找到解压后的目录(应该只有一个)
local update_dir=$(find "$extract_dir" -maxdepth 1 -type d | grep -v "^$extract_dir$" | head -n 1)

Expand Down

0 comments on commit 08a5af5

Please sign in to comment.