diff options
author | 2022-01-30 03:07:45 -0500 | |
---|---|---|
committer | 2022-01-30 03:07:45 -0500 | |
commit | 96ba24a7da70f7149a071c98be37461df50b83e7 (patch) | |
tree | fa0a18e2a4595ac3eadeb94a4e4a21f485352e80 | |
parent | autoconf-wrapper: slightly rework handling of 2.1 version alias (diff) | |
download | autotools-wrappers-96ba24a7da70f7149a071c98be37461df50b83e7.tar.gz autotools-wrappers-96ba24a7da70f7149a071c98be37461df50b83e7.tar.bz2 autotools-wrappers-96ba24a7da70f7149a071c98be37461df50b83e7.zip |
autoconf-wrapper: make sure we break on first match, not last
The intention was that we break on the first match in WANT_AUTOCONF,
so add that missing break statement. In practice, people only ever
set one value in WANT_AUTOCONF, so that's probably why no one has
ever noticed this bug before.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | ac-wrapper.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ac-wrapper.sh b/ac-wrapper.sh index 4682082..57324bb 100755 --- a/ac-wrapper.sh +++ b/ac-wrapper.sh @@ -117,6 +117,7 @@ if [ -n "${WANT_AUTOCONF}" ] ; then if [ -x "${full_argv0}-${wx}" ] ; then binary="${full_argv0}-${wx}" v="x" + break elif [ "${wx}" = "2.5" ] ; then if [ "${auto_ver}" = "2.13" ] ; then # The "2.5" alias accepts every version except 2.13. @@ -125,6 +126,7 @@ if [ -n "${WANT_AUTOCONF}" ] ; then if [ -x "${full_argv0}-${auto_ver}" ] ; then binary="${full_argv0}-${auto_ver}" v="x" + break fi fi done |