소스 검색

Avoid duplicated entries in sources.list

Bob Mottram 10 년 전
부모
커밋
7cb02e025b
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      install-freedombone.sh

+ 3
- 1
install-freedombone.sh 파일 보기

@@ -76,7 +76,9 @@ function enable_backports {
76 76
   if grep -Fxq "enable_backports" $COMPLETION_FILE; then
77 77
 	  return
78 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 82
   echo 'enable_backports' >> $COMPLETION_FILE
81 83
 }
82 84