From 7cb02e025b6b24c42e1aa23e84bb0d9b4097e716 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Sep 2014 11:54:23 +0100 Subject: [PATCH] Avoid duplicated entries in sources.list --- install-freedombone.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 02e82e9d..b3f70965 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -76,7 +76,9 @@ function enable_backports { if grep -Fxq "enable_backports" $COMPLETION_FILE; then return fi - echo "deb http://ftp.us.debian.org/debian jessie-backports main" >> /etc/apt/sources.list + if ! grep -Fxq "deb http://ftp.us.debian.org/debian jessie-backports main" /etc/apt/sources.list; then + echo "deb http://ftp.us.debian.org/debian jessie-backports main" >> /etc/apt/sources.list + fi echo 'enable_backports' >> $COMPLETION_FILE }