[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Make the https repo detection cross sh-*



commit 77558d6be6c6b0ac049cd5d7894e20dfa9d07e8c
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Fri Jul 3 16:18:16 2015 +0200

    Make the https repo detection cross sh-*
---
 scripts/install.sh |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/scripts/install.sh b/scripts/install.sh
index b1a2f9d..8d9a1fa 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -165,13 +165,15 @@ case "$lsb_dist" in
 			fi
 		}
 
-    if [ "$TOR_DEBIAN_REPOSITORY" == "https://*"; ];then
-      (
-        set -x
-        $sh_c 'apt-get install -y apt-transport-https'
-      )
-    fi
-    
+    case "$TOR_DEB_REPO" in
+      https*) 
+        (
+          set -x
+          $sh_c 'apt-get install -y apt-transport-https'
+        )
+        ;;
+    esac
+
     (
       set -x
 		  $sh_c 'apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-keys A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89'



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits