CodeAnalysis
CodeAnalysis copied to clipboard
调用脚本时出现换行符报错
trafficstars
shell脚本使用LF而不是CRLF作为换行符 显示全部信息 只显示会话信息 momo 13 分钟 以前 [root@test1 CodeAnalysis]# sh quick_install.sh quick_install.sh: line 9: $'\r': command not found quick_install.sh: line 10: $'\r': command not found quick_install.sh: line 11: syntax error near unexpected token $'{\r'' 'uick_install.sh: line 11:is_dry_run() { env: [root@test1 CodeAnalysis]# uname -a Linux test1 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux