diff --git a/moonlight.sh b/moonlight.sh index b931d14..3df8acc 100644 --- a/moonlight.sh +++ b/moonlight.sh @@ -1,5 +1,7 @@ #!/bin/bash +RELEASE=$(lsb_release -a | awk '/^Codename:/ {print $2}') + echo -e "\n****************************************************************" echo -e "Welcome to the Moonlight Installer Script for RetroPie v17.10.07" echo -e "****************************************************************\n" @@ -21,11 +23,11 @@ case $NUM in echo -e "\nPHASE ONE: Add Moonlight to Sources List" echo -e "****************************************\n" - if grep -q "deb http://archive.itimmer.nl/raspbian/moonlight jessie main" /etc/apt/sources.list; then + if grep -q "deb http://archive.itimmer.nl/raspbian/moonlight $RELEASE main" /etc/apt/sources.list; then echo -e "NOTE: Moonlight Source Exists - Skipping" else echo -e "Adding Moonlight to Sources List" - echo "deb http://archive.itimmer.nl/raspbian/moonlight jessie main" >> /etc/apt/sources.list + echo "deb http://archive.itimmer.nl/raspbian/moonlight $RELEASE main" >> /etc/apt/sources.list fi echo -e "\n**** PHASE ONE Complete!!!! ****"