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

无法运行,可能是编码格式导致的,转为utf8后仍无法解决 #27

Open
HaoyyLi opened this issue Aug 10, 2024 · 2 comments

Comments

@HaoyyLi
Copy link

HaoyyLi commented Aug 10, 2024

start.sh: line 2: $'\r': command not found
start.sh: line 5: $'\r': command not found
start.sh: line 7: $'\r': command not found
start.sh: line 10: $'\r': command not found
: No such file or directorya/private/new_env_software/clash-for-linux
start.sh: line 13: $'\r': command not found
chmod: cannot access '/opt/data/private/new_env_software/clash-for-linux'$'\r''/bin/'$'\r': No such file or directory
chmod: cannot access '/opt/data/private/new_env_software/clash-for-linux'$'\r''/scripts/
'$'\r': No such file or directory
chmod: cannot access '/opt/data/private/new_env_software/clash-for-linux'$'\r''/tools/subconverter/subconverter'$'\r': No such file or directory
start.sh: line 18: $'\r': command not found
start.sh: line 19: $'\r': command not found
start.sh: line 20: $'\r': command not found
start.sh: line 22: $'\r': command not found
start.sh: line 26: $'\r': command not found
start.sh: line 28: CLASH_URL: Error: CLASH_URL variable is not set or empty

@ultwcz
Copy link

ultwcz commented Aug 15, 2024

First, you should set CLASH_URL in .env files, and option set CLASH_SECRET

@inversionhourglass
Copy link

脚本应该是在windows环境下写的,sh文件里面包含/r符号,可以通过下面的命令把所有/r都去掉

find . -type f -name "*.sh" -exec sed -i 's/\r$//' {} +

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

3 participants