]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Fixing bin/update-env.sh because of virtualenv
authorFrank Brehm <frank@brehm-online.com>
Thu, 3 Feb 2022 16:17:00 +0000 (17:17 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 3 Feb 2022 16:17:00 +0000 (17:17 +0100)
bin/update-env.sh

index 2d3d6018d9ab965cd1376e95fa7eee93f054d233..5cacb0ae654d1f006967fd431cec1397f99287a1 100755 (executable)
@@ -246,13 +246,6 @@ get_options() {
         exit 1
     fi
 
-    if type -t virtualenv >/dev/null ; then
-        :
-    else
-        error "Command '${RED}virtualenv${NORMAL}' not found, please install package '${YELLOW}python-virtualenv${NORMAL}' or appropriate."
-        exit 6
-    fi
-
     if type -t msgfmt >/dev/null ; then
         :
     else
@@ -291,7 +284,7 @@ init_venv() {
                 empty_line
                 info "Found '${GREEN}${python}${NORMAL}'."
                 empty_line
-                virtualenv --python="${python}" venv
+                "${python}" -m venv venv
                 break
             fi
         done