Skip to content

Commit

Permalink
Update x-ui-pro.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
GFW4Fun authored Nov 18, 2024
1 parent c47738d commit a8a56cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x-ui-pro.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
#################### x-ui-pro v11.4.1 @ github.com/GFW4Fun ##############################################
#################### x-ui-pro v11.4.2 @ github.com/GFW4Fun ##############################################
[[ $EUID -ne 0 ]] && { echo "not root!"; exec sudo "$0" "$@"; }
msg() { echo -e "\e[1;37;40m $1 \e[0m";}
msg_ok() { echo -e "\e[1;32;40m $1 \e[0m";}
Expand Down Expand Up @@ -265,7 +265,8 @@ fi
###################################Install X-UI#########################################################
if ! systemctl is-active --quiet x-ui; then
[[ "$PNLNUM" =~ ^[0-2]+$ ]] || PNLNUM=1
if [[ -z "$VERSION" || "$VERSION" = "last" ]]; then VERSION="master"
VERSION=$(echo "$VERSION" | tr -d '[:space:]')
if [[ -z "$VERSION" || "$VERSION" != *.* || "$VERSION" = "last" ]]; then VERSION="master"
else [[ $PNLNUM = "1" ]] && VERSION="v${VERSION#v}" || VERSION="${VERSION#v}" ; fi
PANEL=( "https://raw.githubusercontent.com/alireza0/x-ui/${VERSION}/install.sh"
"https://raw.githubusercontent.com/mhsanaei/3x-ui/${VERSION}/install.sh"
Expand Down

0 comments on commit a8a56cf

Please sign in to comment.