From f21963031982fdb55d25f4ebb3bff5129cbe5344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 1 Jul 2022 20:03:36 +0200 Subject: [PATCH] Properly handle python3-venv on ubuntu --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index ba27bf8..21ff00b 100755 --- a/install.sh +++ b/install.sh @@ -84,16 +84,14 @@ if ! command -v gcc >/dev/null ; then printf 'Done\n' fi -if ! python3 -c 'import venv' 2>/dev/null ; then - printf 'Python3 venv module not installed, installing ...\n' - _install python3-venv - printf 'Done\n' -fi - if [[ $NAME == "Arch Linux" ]] ; then _install "ansible" fi +if [[ $NAME == "Ubuntu" ]] ; then + _install "python3-venv" +fi + cd "$DOTDIR" && make # fix permissions of the directory