Skip to content

Commit

Permalink
Fix script version not considered for tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
keeshux committed Dec 16, 2023
1 parent 0c8b35f commit ccae2a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/get-openssl-version.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash
function get_openssl_version() {
local std_version=$1
local script_version=${2:-}
script_version="$(printf '%02d' $script_version)"
if [[ ! "$std_version" =~ 3.*.* ]]; then
local script_version=${2:-}
local generic_version=${std_version%?}
local subpatch=${std_version: -1}
local subpatch_number=$(($(printf '%d' \'$subpatch) - 97 + 1))
subpatch_number="$(printf '%02d' $subpatch_number)"
script_version="$(printf '%02d' $script_version)"
local normalized_version="${generic_version}${subpatch_number}${script_version}"
echo $normalized_version
return
fi
echo $std_version
echo "${std_version}${script_version}"
}

0 comments on commit ccae2a7

Please sign in to comment.