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

执行sudo bash install-ubuntu22.04.gitee.sh 报line 7: syntax error near unexpected token `newline' #1052

Open
foobean opened this issue Dec 18, 2024 · 2 comments

Comments

@foobean
Copy link

foobean commented Dec 18, 2024

描述问题
阿里云
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

如何复现
wget http://dl.hustoj.com/update-sources-ubuntu.sh
sudo bash update-sources-ubuntu.sh

wget https://github.com/zhblue/hustoj/blob/master/trunk/install/install-ubuntu22.04.gitee.sh
sudo bash install-ubuntu22.04.gitee.sh
然后报
install-ubuntu22.04.gitee.sh: line 7: syntax error near unexpected token newline' install-ubuntu22.04.gitee.sh: line 7: '
不知道是什么错误
用dos2unix install-ubuntu22.04.gitee.sh
后执行报一样错误
下载install-ubuntu22.04.sh执行也报一样错误,请教一下什么问题?

@foobean
Copy link
Author

foobean commented Dec 18, 2024

微信图片_20241218092506

@zhblue
Copy link
Owner

zhblue commented Dec 22, 2024

阿里云直接运行install.sh就好

wget http://dl.hustoj.com/install.sh
sudo bash install.sh

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