diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-02-09 23:20:40 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-02-09 23:20:40 +0100 |
| commit | defd3c898817055c37b00f65b549e5d816cec395 (patch) | |
| tree | caef73ed3aa923696512e25f67e854601632e9af /install.sh | |
| parent | 403b34260de3c58f377854e4f03efa03054b4cc7 (diff) | |
.
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,8 +10,8 @@ install_python_venv() { LONG=$1 SHORT=${LONG//\./} - PYTHON_BIN=$(command -v "python$LONG") - if [ ! -z $PYTHON_BIN ]; then + PYTHON_BIN=$(command -v "python$LONG" || true) + if [ -n $PYTHON_BIN ]; then PYTHON_DIR=~/opt/python$SHORT PIP_BIN=$PYTHON_DIR/bin/pip$LONG |
