Add xxd dependency to registe warp account.

Former-commit-id: 7840e95b97e7a4cd32c81151581e49a371d357ab
This commit is contained in:
fscarmen
2023-08-01 13:25:48 +00:00
parent fff9b98be5
commit cbebd7e069
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -282,6 +282,7 @@ warp i jp
"outbounds":[
{
"protocol":"freedom",
"tag": "direct"
},
{
"protocol":"wireguard",
+2 -2
View File
@@ -358,8 +358,8 @@ check_dependencies() {
if echo "$SYSTEM" | grep -qE "Alpine|OpenWrt"; then
[ ! -s /opt/warp-go/warp-go ] && ( ${PACKAGE_UPDATE[int]}; ${PACKAGE_INSTALL[int]} curl wget grep bash tar )
else
DEPS_CHECK=("ping" "wget" "curl" "systemctl" "ip" "python3")
DEPS_INSTALL=("iputils-ping" "wget" "curl" "systemctl" "iproute2" "python3")
DEPS_CHECK=("ping" "xxd" "wget" "curl" "systemctl" "ip" "python3")
DEPS_INSTALL=("iputils-ping" "xxd" "wget" "curl" "systemctl" "iproute2" "python3")
for ((c=0;c<${#DEPS_CHECK[@]};c++)); do [ ! $(type -p ${DEPS_CHECK[c]}) ] && [[ ! "${DEPS[@]}" =~ "${DEPS_INSTALL[c]}" ]] && DEPS+=(${DEPS_INSTALL[c]}); done
if [ "${#DEPS[@]}" -ge 1 ]; then
info "\n $(text 8) ${DEPS[@]} \n"