mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-01 08:01:23 +00:00
21 lines
378 B
Bash
21 lines
378 B
Bash
#!/bin/bash
|
|
|
|
source /etc/os-release
|
|
|
|
MIRROR=https://le.builds.lakka.tv
|
|
|
|
FILE=`wget $MIRROR/${LIBREELEC_ARCH}/.index -q -O - | head -1`
|
|
URL=$MIRROR/${LIBREELEC_ARCH}/$FILE
|
|
|
|
rm -rf ~/.update/*
|
|
|
|
echo ":: Downloading upgrade"
|
|
wget -P ~/.update/ $URL
|
|
|
|
if [ -z "~/.update/$FILE" ]; then
|
|
echo "Something went wrong during the download."
|
|
exit 1
|
|
fi
|
|
|
|
echo ":: Done, you can now reboot"
|