Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions moonlight.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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!!!! ****"
Expand Down