From 766010c29254bf18aee43433b5dd6d53645b53fc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Mar 2022 07:27:52 +0530 Subject: [PATCH] ... --- shell-integration/ssh/bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index 7f43d5132..3fc8651f9 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -23,8 +23,8 @@ detect_python() { fi python_detected="1" python=$(command -v python3) - if [ -z "$python" ]; then python=$(command -v python2); fi - if [ -z "$python" ]; then python=$(command -v python); fi + [ -z "$python" ] && python=$(command -v python2) + [ -z "$python" ] && python=$(command -v python) if [ -z "$python" -o ! -x "$python" ]; then python=""; return 1; fi return 0 }