dubbo-admin icon indicating copy to clipboard operation
dubbo-admin copied to clipboard

'\r' in startup.sh caused startup failure

Open SuperMaskv opened this issue 4 years ago • 0 comments

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.
  • [x] I have checked the REAMDE of this repository and believe that this is not a duplicate.

Environment

  • Dubbo Admin version: 0.3.0
  • Operating System version: Debian 10.0
  • Java version: openjdk 11

Steps to reproduce this issue

root@10-23-47-70:~/dubbo-admin/bin# bash startup.sh
startup.sh: line 2: $'\r': command not found
startup.sh: line 17: $'\r': command not found
startup.sh: line 21: syntax error near unexpected token `$'in\r''
'tartup.sh: line 21: `case "`uname`" in

What have I tried

sed -i 's/\r//' startup.sh

and then startup well

SuperMaskv avatar Aug 27 '21 04:08 SuperMaskv