Skip to content

Commit e266a12

Browse files
authored
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.
2 parents 936b666 + d855ca0 commit e266a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
script="$(dirname $0)"/src/bootstrap/configure.py
3+
script="$(dirname "$0")"/src/bootstrap/configure.py
44

55
try() {
66
cmd=$1
@@ -15,4 +15,4 @@ try python3 "$@"
1515
try python2.7 "$@"
1616
try python27 "$@"
1717
try python2 "$@"
18-
exec python $script "$@"
18+
exec python "$script" "$@"

0 commit comments

Comments
 (0)