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

[tor-commits] [ooni-probe/master] Implement codename detection without lsb_release



commit 23ae055fb90a332799302a483e571406b9169d99
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Fri Jul 3 12:55:42 2015 +0200

    Implement codename detection without lsb_release
---
 scripts/install.sh |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/install.sh b/scripts/install.sh
index e0f455b..3bfc253 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -76,6 +76,8 @@ if [ -z "$lsb_dist" ] && [ -r /etc/lsb-release ]; then
 fi
 if [ -z "$lsb_dist" ] && [ -r /etc/debian_version ]; then
 	lsb_dist='Debian'
+  distro_version="$(cat /etc/debian_version)"
+  distro_codename="$(. /etc/os-release && echo "$VERSION" | cut -d '(' -f2 | cut -d ')' -f1)"
 fi
 if [ -z "$lsb_dist" ] && [ -r /etc/fedora-release ]; then
 	lsb_dist='Fedora'



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