mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
Add xxd dependency to registe warp account.
Former-commit-id: 7840e95b97e7a4cd32c81151581e49a371d357ab
This commit is contained in:
@@ -282,6 +282,7 @@ warp i jp
|
||||
"outbounds":[
|
||||
{
|
||||
"protocol":"freedom",
|
||||
"tag": "direct"
|
||||
},
|
||||
{
|
||||
"protocol":"wireguard",
|
||||
|
||||
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user