fix(x): fix a regex used to find python executable

This commit is contained in:
ismailarilik 2024-11-06 16:40:02 +03:00
parent 2796048328
commit e0b98c739a

2
x
View File

@ -36,7 +36,7 @@ for SEARCH_PYTHON in py python3 python python2; do
fi fi
done done
python=$(bash -c "compgen -c python" | grep '^python[2-3]\.[0-9]\+$' | head -n1) python=$(bash -c "compgen -c python" | grep '^python[2-3]\.[0-9]+$' | head -n1)
if ! [ "$python" = "" ]; then if ! [ "$python" = "" ]; then
exec "$python" "$xpy" "$@" exec "$python" "$xpy" "$@"
fi fi