aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
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