Skip to content

Commit

Permalink
Unrolled build for rust-lang#121197
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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.
  • Loading branch information
rust-timer committed Feb 17, 2024
2 parents dfdbe30 + d855ca0 commit d1af738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

script="$(dirname $0)"/src/bootstrap/configure.py
script="$(dirname "$0")"/src/bootstrap/configure.py

try() {
cmd=$1
Expand All @@ -15,4 +15,4 @@ try python3 "$@"
try python2.7 "$@"
try python27 "$@"
try python2 "$@"
exec python $script "$@"
exec python "$script" "$@"

0 comments on commit d1af738

Please sign in to comment.