From d855ca044da4ed42eb60dbd20cc1341f35d8e0fc Mon Sep 17 00:00:00 2001 From: beetrees Date: Fri, 16 Feb 2024 18:51:22 +0000 Subject: [PATCH] Ensure `./configure` works when `configure.py` path contains spaces --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 81e2001e4a5..e8627c9f0d5 100755 --- a/configure +++ b/configure @@ -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" "$@"