diff --git a/mcTimer.sh b/mcTimer.sh index 00d5234..cf8311d 100644 --- a/mcTimer.sh +++ b/mcTimer.sh @@ -1,13 +1,17 @@ #!/bin/bash -#install rss-glx -#echo 2025-08-31T3000 >> $HOME/mcMilo -wget -o /tmp/Minecraft.deb https://launcher.mojang.com/download/Minecraft.deb & -update ; install default-jre default-jdk -sudo apt install /tmp/Minecraft.deb - user=Milo # Milo | Ayana -exec="/usr/libexec/xscreensaver/hyperspace" + +exec="/usr/bin/minecraft-launcher" +test -x "$exec" || ( +wget -O /tmp/Minecraft.deb https://launcher.mojang.com/download/Minecraft.deb & +dl="$!" +sudo aptitude update ; sudo aptitude upgrade -y +sudo aptitude install -y default-jre default-jdk +wait "$dl" +sudo apt install -y /tmp/Minecraft.deb +) + notify="notify-send" limit="3600" # seconds / day logfile="$HOME/mc$user"