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; }