From 86b15ad693b1749d7bfae041ace7c4de84cae5cc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 Feb 2022 12:54:19 +0530 Subject: [PATCH] fix detection of python when no python2 or python3 links present --- shell-integration/ssh/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index 476dd7cee..7bc990c96 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -103,7 +103,7 @@ login_shell_is_ok() { detect_python() { python=$(command -v python3) if [ -z "$python" ]; then python=$(command -v python2); fi - if [ -z "$python" ]; then python=python; fi + if [ -z "$python" ]; then python=$(command -v python); fi if [ -z "$python" -o ! -x "$python" ]; then return 1; fi return 0; }