Hello lovelies!
I am trying to get a very simple shell script to work. But somehow it never works how i want it to.
So i enter
minecraft_starter, the script starts. Now i want to enter
minecraft_starter gui, so the elif with the variable gui starts. But it doesn't. I am sure it is pretty simple. Thing is i cant figure it out. And Yes I asked google for the last two hours
.
minecraft_starter:
Code:
#!/bin/bash
if [ "$output" ]
then java -Xmx3896M -Xms1G -d64 -jar /home/minecraft/minecraft-server/minecraft_server.1.10.2.jar nogui
elif [ "$gui" ]
then java -Xmx3896M -Xms1G -d64 -jar /home/minecraft/minecraft-server/minecraft_server.1.10.2.jar
elif [ "$man" ]
then echo "output: no nohup or and / gui: no output, and, gui / man: gives manpage similar output / none: silenced."
else nohup java -Xmx3896M -Xms1G -d64 -jar /home/minecraft/minecraft-server/minecraft_server.1.10.2.jar nogui &
fi
Thanks in advance!