do not hardcode the full version

This commit is contained in:
Earl Warren 2024-01-07 18:08:41 +01:00
parent 69747630a9
commit f0570182b8
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 15 additions and 10 deletions

View file

@ -71,6 +71,8 @@ function teardown() {
function main() {
local binary="$1"
shift
export full_version="$1"
shift
export version="$1"
shift
@ -79,7 +81,7 @@ function main() {
teardown
if test "$#" = 0 ; then
examples=$(examples_$version)
examples=$(examples_${version/./_})
else
examples="$@"
fi