Browse Source

Avoid duplicated entries in sources.list

Bob Mottram 11 years ago
parent
commit
7cb02e025b
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      install-freedombone.sh

+ 3
- 1
install-freedombone.sh View File

76
   if grep -Fxq "enable_backports" $COMPLETION_FILE; then
76
   if grep -Fxq "enable_backports" $COMPLETION_FILE; then
77
 	  return
77
 	  return
78
   fi
78
   fi
79
-  echo "deb http://ftp.us.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
79
+  if ! grep -Fxq "deb http://ftp.us.debian.org/debian jessie-backports main" /etc/apt/sources.list; then
80
+    echo "deb http://ftp.us.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
81
+  fi
80
   echo 'enable_backports' >> $COMPLETION_FILE
82
   echo 'enable_backports' >> $COMPLETION_FILE
81
 }
83
 }
82
 
84