Skip to content

Commit

Permalink
fix: execution order logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Dec 14, 2024
1 parent 71a4859 commit 3f8f033
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5609,6 +5609,9 @@ function main_return() {

function first_init() {

INFO "获取系统信息中..."
get_os

INFO "获取 IP 地址中..."
CITY="$(curl -fsSL -m 10 -s http://ipinfo.io/json | sed -n 's/.*"city": *"\([^"]*\)".*/\1/p')"
if [ -n "${CITY}" ]; then
Expand Down Expand Up @@ -5721,7 +5724,6 @@ function root_need() {
clear
INFO "初始化中,请稍等...."
root_need
INFO "获取系统信息中..."
if [ "$(uname -s)" == "Darwin" ]; then
if ! command -v brew; then
WARN "brew 未安装,脚本尝试自动安装..."
Expand Down Expand Up @@ -5758,7 +5760,6 @@ if [ "$(uname -s)" == "Darwin" ]; then
sudo bash /tmp/xiaoya_install.sh $@
fi
fi
get_os
if [ ! -d "/tmp/xiaoya_alist_tmp" ]; then
mkdir -p /tmp/xiaoya_alist_tmp
fi
Expand Down

0 comments on commit 3f8f033

Please sign in to comment.