Menu

#129 yajsw-beta-12.07 has DOS line endings in Unix shell scripts

All
closed-fixed
rzo
None
5
2017-01-22
2016-11-25
No

The Unix shell scripts in yajsw-beta-12.07 have DOS line endings (CRLF) instead of Unix line endings (LF). This causes scripts to break with errors similar to the following:

root@uxeprdlnxmine01:/opt/spigotmc# bash -x /opt/spigotmc/yajsw-beta-12.07/bin/installDaemon.sh
+ $'\r'
/opt/spigotmc/yajsw-beta-12.07/bin/installDaemon.sh: line 5: $'\r': command not found
+ PRG=$'/opt/spigotmc/yajsw-beta-12.07/bin/installDaemon.sh\r'
+ $'\r'
/opt/spigotmc/yajsw-beta-12.07/bin/installDaemon.sh: line 8: $'\r': command not found
/opt/spigotmc/yajsw-beta-12.07/bin/installDaemon.sh: line 35: syntax error: unexpected end of file

Or the following:

root@uxeprdlnxmine01:/opt/spigotmc/yajsw-beta-12.07# ./bin/installDaemon.sh
-bash: ./bin/installDaemon.sh: /bin/bash^M: bad interpreter: No such file or directory

Or the following:

/bin/sh: 1: /opt/spigotmc/yajsw-beta-12.07/bin/installDaemon.sh: not found

Discussion

  • rzo

    rzo - 2017-01-22
    • status: open --> closed-fixed
     
  • rzo

    rzo - 2017-01-22

    thanks for pointing this out
    release 12.08

     

Log in to post a comment.