1 2 3 4 5 6 7 8 9
#!/bin/bash if [[ "$1" != "-p" ]]; then WORKDIR=${XDG_CONFIG_HOME:-$HOME/.config}/hmcl mkdir -p $WORKDIR cd $WORKDIR fi _java=$(ls /usr/lib/jvm | grep 8-openjdk) exec /usr/lib/jvm/$_java/jre/bin/java -jar /usr/share/hmcl/hmcl.jar