From 76065290c5b627a8a17b2de3f7384b59ea6d59ac Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Fri, 1 Dec 2023 09:02:59 +0100 Subject: [PATCH] Fixed small python detection bug --- ssh-wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-wrapper.py b/ssh-wrapper.py index d7129bb..2ea189a 100755 --- a/ssh-wrapper.py +++ b/ssh-wrapper.py @@ -1,7 +1,7 @@ #!/bin/sh '''': for pyint in python3 python python2; do - which $pyint >/dev/null 2>&1 && exec $pyint "$0" "$@" + command -v $pyint >/dev/null 2>&1 && exec $pyint "$0" "$@" done echo "$0: No python could be found" >&2 exit 1