aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2022-02-09 23:20:40 +0100
committerbozo.kopic <bozo@kopic.xyz>2022-02-09 23:20:40 +0100
commitdefd3c898817055c37b00f65b549e5d816cec395 (patch)
treecaef73ed3aa923696512e25f67e854601632e9af /install.sh
parent403b34260de3c58f377854e4f03efa03054b4cc7 (diff)
.
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 5922348..b31756e 100755
--- a/install.sh
+++ b/install.sh
@@ -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