[x264-devel] [PATCH v2 5/8] configure: remove unneeded POSIX sh incompatible "local" usage

Ethan Sommer e5ten.arch at gmail.com
Thu Jan 16 22:23:39 CET 2020


---
 configure | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index d9c62730..280e7d3b 100755
--- a/configure
+++ b/configure
@@ -335,9 +335,9 @@ rm -rf conftest*
 
 # Construct a path to the specified directory relative to the working directory
 relative_path() {
-    local base="${PWD%/}"
-    local path="$(cd "$1" >/dev/null; printf '%s/.' "${PWD%/}")"
-    local up=''
+    base="${PWD%/}"
+    path="$(cd "$1" >/dev/null; printf '%s/.' "${PWD%/}")"
+    up=''
 
     while [ "${path#$base/}" = "$path" ]; do
         base="${base%/*}"
-- 
2.25.0



More information about the x264-devel mailing list