From 6b169777da1a897b9c60b849b4454b1f563b4ad5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 9 Nov 2016 19:45:04 +0000 Subject: [PATCH] Check for duplicates --- src/freedombone-app-jitsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-jitsi b/src/freedombone-app-jitsi index 02ac7807..19d95712 100755 --- a/src/freedombone-app-jitsi +++ b/src/freedombone-app-jitsi @@ -225,7 +225,9 @@ function install_jitsi { # add jitsi repo jitsi_deb_repo=unstable apt-get -yq install wget debconf-utils - echo "deb http://download.jitsi.org/nightly/deb ${jitsi_deb_repo}/" >> /etc/apt/sources.list + if ! grep "jitsi" /etc/apt/sources.list; then + echo "deb http://download.jitsi.org/nightly/deb ${jitsi_deb_repo}/" >> /etc/apt/sources.list + fi wget -qO - https://download.jitsi.org/nightly/deb/${jitsi_deb_repo}/archive.key | apt-key add - apt-get update