mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user