Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

English version 404 #7

Open
rockydares opened this issue Dec 21, 2022 · 1 comment
Open

English version 404 #7

rockydares opened this issue Dec 21, 2022 · 1 comment

Comments

@rockydares
Copy link

rockydares commented Dec 21, 2022

When installing english version, this error throws

https://github.com/mazafard/x-ui/releases/download/0.0.7/x-ui-linux-amd64-english.tar.gz
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-12-21 13:33:07 ERROR 404: Not Found.

When trying install.sh

bash <(curl -Ls https://raw.githubusercontent.com/mazafard/x-ui/master/install.sh)
/dev/fd/63: line 38: syntax error near unexpected token `<<<'
/dev/fd/63: line 38: `<<<<<<< HEAD'
@hoseinnikkhah
Copy link

hoseinnikkhah commented Jan 9, 2023

<<<<<<< HEAD
elif [[ $arch == "s390x" ]]; then
    arch="s390x"

I checked main source and this forked version, seems like some of the codes between line 38 to 42 in this fork is different which I believe that is causing the issue.

here is the code from this forked version:

<<<<<<< HEAD
elif [[ $arch == "s390x" ]]; then
    arch="s390x"
=======
>>>>>>> f0badd3 (1.modified install.sh file format to unix)
else
    arch="amd64"
    echo -e "${red}检测架构失败,使用默认架构: ${arch}${plain}"

and this is from source version:

elif [[ $arch == "s390x" ]]; then
    arch="s390x"
else
    arch="amd64"
    echo -e "${red}检测架构失败,使用默认架构: ${arch}${plain}"
fi

I assume this is due to changes were made to original file in order to translate it into English, there are more of these errors in the code and you can detect them with these lines:
<<<<<<< HEAD
>>>>>>> f0badd3 (1.modified install.sh file format to unix)
however install_en.sh is fine and can work pretty good, give that a try and update thread if possible.

Also you can check this here: https://github.com/vaxilu/x-ui/pull/186/files

Mazafard added a commit that referenced this issue Jan 27, 2023
Mazafard added a commit that referenced this issue Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants