Skip to content

Commit cdc892e

Browse files
authored
Merge pull request #2991 from testssl/3.3snap1
Add "dev" to the version banner to clarify
2 parents a9fc8a1 + c895a5c commit cdc892e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

testssl.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ trap "child_error" USR1
122122

123123
########### Internal definitions
124124
#
125-
declare -r VERSION="3.3-snapshot-2602"
125+
declare -r VERSION="3.3dev-snapshot-2602"
126126
# shellcheck disable=SC2034
127127
declare -r SWCONTACT="dirk aet testssl dot sh"
128128
[[ "$VERSION" =~ dev|rc|beta|snapshot ]] && \
@@ -21851,14 +21851,16 @@ prepare_arrays() {
2185121851
mybanner() {
2185221852
local bb1 bb2 bb3
2185321853
local spaces=" "
21854+
local add=""
2185421855
local full="$1" # we have a short version and a longer one (two liner vs 4 liner)
2185521856
local short_built_date="" # a reduced version of the build date in the short banner
2185621857

2185721858
"$QUIET" && return
2185821859
"$CHILD_MASS_TESTING" && return
21860+
[[ $VERSION =~ snapshot ]] && add="###"
2185921861
bb1=$(cat <<EOF
2186021862

21861-
#####################################################################
21863+
#####################################################################${add}
2186221864
EOF
2186321865
)
2186421866
bb2=$(cat <<EOF
@@ -21869,7 +21871,7 @@ EOF
2186921871
EOF
2187021872
)
2187121873
bb3=$(cat <<EOF
21872-
#####################################################################
21874+
#####################################################################${add}
2187321875
EOF
2187421876
)
2187521877
prln_bold "$bb1"; out "$spaces" ; pr_bold "$PROG_NAME"; out " version " ; pr_bold "$VERSION" ; out " from "

0 commit comments

Comments
 (0)