fix(x): fix a regex used to find python executable
This commit is contained in:
parent
2796048328
commit
e0b98c739a
1 changed files with 1 additions and 1 deletions
2
x
2
x
|
@ -36,7 +36,7 @@ for SEARCH_PYTHON in py python3 python python2; do
|
|||
fi
|
||||
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
|
||||
exec "$python" "$xpy" "$@"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue