Browse Source

Check for duplicates

Bob Mottram 8 years ago
parent
commit
6b169777da
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-app-jitsi

+ 3
- 1
src/freedombone-app-jitsi View File

@@ -225,7 +225,9 @@ function install_jitsi {
225 225
     # add jitsi repo
226 226
     jitsi_deb_repo=unstable
227 227
     apt-get -yq install wget debconf-utils
228
-    echo "deb http://download.jitsi.org/nightly/deb ${jitsi_deb_repo}/" >> /etc/apt/sources.list
228
+    if ! grep "jitsi" /etc/apt/sources.list; then
229
+        echo "deb http://download.jitsi.org/nightly/deb ${jitsi_deb_repo}/" >> /etc/apt/sources.list
230
+    fi
229 231
     wget -qO - https://download.jitsi.org/nightly/deb/${jitsi_deb_repo}/archive.key | apt-key add -
230 232
     apt-get update
231 233