-
-
Save lae/5223391 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check to see if the directory exists | |
if [ ! -d $HOME/.ftb ] | |
then | |
mkdir $HOME/.ftb | |
fi | |
# Check to make sure the launcher is in the directory | |
if [ ! -f $HOME/.ftb/FTB_Launcher.jar ] | |
then | |
wget --directory-prefix=$HOME/.ftb/ http://www.creeperrepo.net/direct/FTB2/7ca94753565505f94112ce22c3935f6d/launcher%5EFTB_Launcher.jar | |
fi | |
# Fix for users of special IM modules | |
unset XMODIFIERS GTK_IM_MODULE QT_IM_MODULE | |
# The actual code to run the launcher | |
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JAVA_HOME/lib/amd64/:$JAVA_HOME/lib/i386/:$JAVA_HOME/jre/lib/amd64/:$JAVA_HOME/jre/lib/i386/" exec java -Xmx1024M -Xms512M -jar $HOME/.ftb/FTB_Launcher.jar $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment