aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index cc4a581..8395fd5 100755
--- a/install.sh
+++ b/install.sh
@@ -7,7 +7,7 @@ symlink () {
}
install_python_venv() {
- PYTHON_CMD="$(which -a $1 2> /dev/null | grep -m 1 -v "^$(cd; pwd)")"
+ PYTHON_CMD="$((which -a $1 2> /dev/null || true) | grep -m 1 -v "^$(cd; pwd)")"
[ -z "$PYTHON_CMD" ] && return 0;
PYTHON=$PYTHON_CMD