Parcourir la source

Avoid duplicated entries in sources.list

Bob Mottram il y a 10 ans
Parent
révision
7cb02e025b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3
    1
      install-freedombone.sh

+ 3
- 1
install-freedombone.sh Voir le fichier

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