itsdinkd / AQM2

1.17 - 1.19.2
https://www.curseforge.com/minecraft/modpacks/another-quality-modpack-2
10 stars 6 forks source link

[BUG] startserver.sh has invalid carriage returns at end of lines #219

Closed lv00-player closed 1 year ago

lv00-player commented 1 year ago

Modpack Version 1.5.1

Describe the crash or bug I'm on archlinux and I couldn't run the startserver shell script because there were carriage return characters at the end of each line. I think this is normal for files on windows but bash would give me errors when trying to run the script. I was able to remove it with a quick tr -d '\r' < startserver.sh > output.sh.

Steps to reproduce the behavior: Run 'startserver.sh' on linux

Crash log or latest.log.log zsh: ./startserver.sh: bad interpreter: /bin/bash^M: no such file or directory

itsdinkd commented 1 year ago

Saw this too late. I'll fix for 1.5.3

itsdinkd commented 1 year ago

I know nothing about unix and commands but can you write that I can put in the actual startserver.sh script so it does this on its own when someone runs it?

FederAndInk commented 1 year ago

you can make git do it for you :) https://stackoverflow.com/questions/10418975/how-to-change-line-ending-settings#10419350

itsdinkd commented 1 year ago

fixed in 1.5.5!