Fix script version not considered for tagging
This commit is contained in:
parent
0c8b35f075
commit
ccae2a7ebc
|
@ -1,16 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
function get_openssl_version() {
|
function get_openssl_version() {
|
||||||
local std_version=$1
|
local std_version=$1
|
||||||
if [[ ! "$std_version" =~ 3.*.* ]]; then
|
|
||||||
local script_version=${2:-}
|
local script_version=${2:-}
|
||||||
|
script_version="$(printf '%02d' $script_version)"
|
||||||
|
if [[ ! "$std_version" =~ 3.*.* ]]; then
|
||||||
local generic_version=${std_version%?}
|
local generic_version=${std_version%?}
|
||||||
local subpatch=${std_version: -1}
|
local subpatch=${std_version: -1}
|
||||||
local subpatch_number=$(($(printf '%d' \'$subpatch) - 97 + 1))
|
local subpatch_number=$(($(printf '%d' \'$subpatch) - 97 + 1))
|
||||||
subpatch_number="$(printf '%02d' $subpatch_number)"
|
subpatch_number="$(printf '%02d' $subpatch_number)"
|
||||||
script_version="$(printf '%02d' $script_version)"
|
|
||||||
local normalized_version="${generic_version}${subpatch_number}${script_version}"
|
local normalized_version="${generic_version}${subpatch_number}${script_version}"
|
||||||
echo $normalized_version
|
echo $normalized_version
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
echo $std_version
|
echo "${std_version}${script_version}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue