Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AkinaAcct committed Jun 7, 2024
1 parent 6a645e7 commit f2a582c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AAP.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
#by Akina | LuoYan
#2024-06-03 Rewrite
#shellcheck disable=SC2059,SC2086,SC2166

# 特殊变量
RED="\033[1;31m" # RED
Expand Down Expand Up @@ -103,7 +104,7 @@ while getopts ":hvi:k:IVs:SE:" OPT; do
done

# ROOT 检测
if [ $(id -u) -ne 0 ]; then
if [ "$(id -u)" -ne 0 ]; then
msg_err "Run this script with root!"
exit 127
fi
Expand Down Expand Up @@ -168,7 +169,7 @@ else
fi

# 加载操作文件
. ./AAPFunction
source ./AAPFunction

get_device_boot
get_tools
Expand Down

0 comments on commit f2a582c

Please sign in to comment.