From 8c0e1c301e501ea496cb5777844d746d5efac389 Mon Sep 17 00:00:00 2001 From: Burathar Date: Wed, 27 Jan 2021 18:28:30 +0100 Subject: [PATCH] Add Ubuntu check --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4f8e08f..ae3d2cd 100755 --- a/install.sh +++ b/install.sh @@ -63,7 +63,15 @@ esac echo "== Making sure python3 and virtualenv are installed ==" python3 --version || apt-get install -y python3 -python3 -m venv -h >/dev/null 2>&1 || apt-get install -y python3-venv + +# Ubuntu asks for extra libraries except python3-venv. Test for other systems? +osname=`awk -F= '/^NAME/{print $2}' /etc/os-release` +if [ "$osname" = '"Ubuntu"' ]; then + apt-get install -y python3-venv +else + python3 -m venv -h >/dev/null 2>&1 || apt-get install -y python3-venv +fi +