Parcourir la source

Check for duplicates

Bob Mottram il y a 8 ans
Parent
révision
6b169777da
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3
    1
      src/freedombone-app-jitsi

+ 3
- 1
src/freedombone-app-jitsi Voir le fichier

225
     # add jitsi repo
225
     # add jitsi repo
226
     jitsi_deb_repo=unstable
226
     jitsi_deb_repo=unstable
227
     apt-get -yq install wget debconf-utils
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
     wget -qO - https://download.jitsi.org/nightly/deb/${jitsi_deb_repo}/archive.key | apt-key add -
231
     wget -qO - https://download.jitsi.org/nightly/deb/${jitsi_deb_repo}/archive.key | apt-key add -
230
     apt-get update
232
     apt-get update
231
 
233