updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / jdownloader2 / JDownloader
blob9441dda66c1d1afad1c269bc060667b3f1f102f5
1 #!/usr/bin/env bash
3 if [[ -x '/opt/JDownloader' ]]; then
4 umask u=rwx,g=rwx,o=rwx
5 cd '/opt/JDownloader'
6 else
7 mkdir -p "${HOME}/.jd"
8 cd "${HOME}/.jd"
9 fi
11 if [ ! -f "JDownloader.jar" ]; then
12 wget -O jdupdate.jar http://update0.jdownloader.org/jdupdate.jar
13 exec java -jar jdupdate.jar "$@"
14 else
15 exec java -jar JDownloader.jar "$@"