Fix Worlds Organizer launch
Should now download then run it if it isn't found.
This commit is contained in:
parent
b50281452a
commit
3b1bb41013
|
@ -40,10 +40,10 @@ main() {
|
||||||
'Launch Worlds with Logger')
|
'Launch Worlds with Logger')
|
||||||
launch && tail -F "$WORLDSINSTALL/Gamma.Log.open" | zenity --text-info --auto-scroll --height=480 --width=768 --title="$TITLE - Log" --window-icon="$WORLDSDIR/icon.png" --text="Gamma.Log.open" ;;
|
launch && tail -F "$WORLDSINSTALL/Gamma.Log.open" | zenity --text-info --auto-scroll --height=480 --width=768 --title="$TITLE - Log" --window-icon="$WORLDSDIR/icon.png" --text="Gamma.Log.open" ;;
|
||||||
'Worlds Organizer')
|
'Worlds Organizer')
|
||||||
java -jar "$WORLDSDIR/WorldsOrganizer.jar"
|
if [[ ! -f "$WORLDSDIR/WorldsOrganizer.jar" ]]; then
|
||||||
if [[ $? -eq 1 ]]; then
|
wget -O"$WORLDSDIR/WorldsOrganizer.jar" "https://wirlaburla.site/projects/WorldsOrganizer/dw/0.9.64/WorldsOrganizer-linux.jar"
|
||||||
wget -O"$WORLDSDIR/WorldsOrganizer" "https://wirlaburla.site/projects/WorldsOrganizer/dw/0.9.64/WorldsOrganizer-linux.jar"
|
|
||||||
fi
|
fi
|
||||||
|
java -jar "$WORLDSDIR/WorldsOrganizer.jar"
|
||||||
main ;;
|
main ;;
|
||||||
'Open Worlds folder')
|
'Open Worlds folder')
|
||||||
gio open "$WORLDSINSTALL" ;;
|
gio open "$WORLDSINSTALL" ;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user