mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 06:13:53 +00:00
fix(x): fix a regex used to find python executable
This commit is contained in:
parent
2796048328
commit
e0b98c739a
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…
Reference in New Issue
Block a user