diff options
Diffstat (limited to 'include/init.sh')
-rw-r--r-- | include/init.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/init.sh b/include/init.sh index f201d9ea..7ca0b6b0 100644 --- a/include/init.sh +++ b/include/init.sh @@ -375,8 +375,12 @@ pybin() pypath="$(findpath \ "$(command -v "$1" 2>/dev/null)" 2>/dev/null || :)" - [ -e "$pypath" ] && [ ! -d "$pypath" ] && \ - [ -x "$pypath" ] && printf "%s\n" "$pypath" && return 0; : + + if [ -e "$pypath" ] && [ ! -d "$pypath" ] && \ + [ -x "$pypath" ]; then + printf "%s\n" "$pypath" + return 0 + fi fi # if python venv: fall back to common PATH directories for checking |