[tor-commits] [ooni-probe/master] Implement codename detection without lsb_release
art at torproject.org
art at torproject.org
Fri Nov 20 14:41:58 UTC 2015
commit 23ae055fb90a332799302a483e571406b9169d99
Author: Arturo Filastò <art at fuffa.org>
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'
More information about the tor-commits
mailing list