Rollup merge of #121197 - beetrees:configure-quotes, r=Nilstrieb

Ensure `./configure` works when `configure.py` path contains spaces

Add quotes around paths that may contains spaces in `configure` to avoid the shell splitting the path into multiple arguments.
This commit is contained in:
Guillaume Boisseau 2024-02-17 11:23:09 +01:00 committed by GitHub
commit e266a12307
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
configure vendored
View file

@ -1,6 +1,6 @@
#!/bin/sh
script="$(dirname $0)"/src/bootstrap/configure.py
script="$(dirname "$0")"/src/bootstrap/configure.py
try() {
cmd=$1
@ -15,4 +15,4 @@ try python3 "$@"
try python2.7 "$@"
try python27 "$@"
try python2 "$@"
exec python $script "$@"
exec python "$script" "$@"