diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-10-02 23:06:22 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-10-02 23:06:22 +0200 |
commit | 7459eb627c97d27ef6e12cdededa48e1ff03d533 (patch) | |
tree | b2cf2bad4e4fbaebffa5a4c13a478c1dfe30663f /application/package/ubuntu/multimc_1.1-1/opt/multimc/run.sh | |
parent | ae4216de6101db63a1ec7d817852cad2d10863f5 (diff) | |
download | MultiMC-7459eb627c97d27ef6e12cdededa48e1ff03d533.tar MultiMC-7459eb627c97d27ef6e12cdededa48e1ff03d533.tar.gz MultiMC-7459eb627c97d27ef6e12cdededa48e1ff03d533.tar.lz MultiMC-7459eb627c97d27ef6e12cdededa48e1ff03d533.tar.xz MultiMC-7459eb627c97d27ef6e12cdededa48e1ff03d533.zip |
GH-1266 fix ubuntu run script
Diffstat (limited to 'application/package/ubuntu/multimc_1.1-1/opt/multimc/run.sh')
-rwxr-xr-x | application/package/ubuntu/multimc_1.1-1/opt/multimc/run.sh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/application/package/ubuntu/multimc_1.1-1/opt/multimc/run.sh b/application/package/ubuntu/multimc_1.1-1/opt/multimc/run.sh deleted file mode 100755 index 9b934302..00000000 --- a/application/package/ubuntu/multimc_1.1-1/opt/multimc/run.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -INSTDIR=$XDG_DATA_HOME/multimc -if [ `getconf LONG_BIT` = "64" ] -then - PACKAGE="mmc-stable-lin64.tar.gz" -else - PACKAGE="mmc-stable-lin32.tar.gz" -fi - -deploy() { - mkdir -p $INSTDIR - cd ${INSTDIR} - - wget --progress=dot:force "https://files.multimc.org/downloads/${PACKAGE}" 2>&1 | sed -u 's/.* \([0-9]\+%\)\ \+\([0-9.]\+.\) \(.*\)/\1\n# Downloading at \2\/s, ETA \3/' | zenity --progress --auto-close --auto-kill --title="Downloading MultiMC..." - - tar -xzf ${PACKAGE} --transform='s,MultiMC/,,' - rm ${PACKAGE} - chmod +x MultiMC -} - -runmmc() { - cd ${INSTDIR} - ./MultiMC -} - -if [[ ! -f ${INSTDIR}/MultiMC ]]; then - deploy - runmmc -else - runmmc -fi |