[Bug]: linux run.sh is not meaningfully a shell script
seebs opened this issue ยท 2 comments
General Info
- I didn't added any mods
- I can reproduce this issue consistently in single-player
- I can reproduce this issue consistently in multi-player
- I have searched for this issue previously and it was either (1) not previously reported, or (2) previously fixed and I am having the same problem.
- I am crashing and can provide my crash report(s)
- I am using the latest version of the modpack
Your launcher
N/A, server side
Modpack version
serverpack 1.10
Describe your issue
run.sh script isn't a valid script
Steps to reproduce the issue
sh run.sh
Additional Information
The issue is that @filename
is a DOS batch file thing, if you do this in shell scripts, you just get an error that @user_jvm_args.txt
is not a recognized option.
Maybe try:
java $(<user_jvm_args.txt) $(<libraries/net/minecraftforge/forge/1.18.2-40.2.0/unix_args.txt) "$@"
which should work for bash. You might also want to change the first line to invoke bash
, not sh
, because there's Linuxes where plain sh
won't support that.
actually, @filename
is a java thing, not shell functionality
see this javadoc
General Info
- I didn't added any mods
- I can reproduce this issue consistently in single-player
- I can reproduce this issue consistently in multi-player
- I have searched for this issue previously and it was either (1) not previously reported, or (2) previously fixed and I am having the same problem.
- I am crashing and can provide my crash report(s)
- I am using the latest version of the modpack
Your launcher
N/A, server side
Modpack version
serverpack 1.10
Describe your issue
run.sh script isn't a valid script
Steps to reproduce the issue
sh run.sh
Additional Information
The issue is that
@filename
is a DOS batch file thing, if you do this in shell scripts, you just get an error that@user_jvm_args.txt
is not a recognized option.Maybe try:
java $(<user_jvm_args.txt) $(<libraries/net/minecraftforge/forge/1.18.2-40.2.0/unix_args.txt) "$@"
which should work for bash. You might also want to change the first line to invoke
bash
, notsh
, because there's Linuxes where plainsh
won't support that.
The run.bat and run.sh files are automatically created by the Forge installer and is not something we create. This is an issue you would need to take up with Forge not modpack developers.
This is from a fresh install using the Forge 1.19.2 43.3.0 installer. As you can see, they are using the @ method.