Beim 1. Script fehlte noch was, Also: #!/bin/sh
ATURL='https://www.consorsbank.de/content/dam/de-cb/editorial/Apps/ActiveTrader/ActiveTraderPortableDE-64bit.exe'
cd ~
java=$(which java) || sudo apt install openjdk-8-jdk && java=$(which java) || exit
cd ~/bin || { echo "~/bin anlegen und zum PATH hinzufügen" >&2; exit 1; }
[ -d ActiveTraderPortableDE-64bit ] || {
[ -f ActiveTraderPortableDE-64bit.exe ] || {
wget $ATURL || exit;
}
7z x ActiveTraderPortableDE-64bit.exe || exit
cd ActiveTraderPortableDE-64bit/java/bin || exit
ln -s $java ./java
}
... Mehr anzeigen