mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-21 07:59:31 +01:00
fix missing space in banner and suppress empty version string
This commit is contained in:
parent
ec55cdea14
commit
61d42b022c
12
testssl.sh
12
testssl.sh
@ -11015,7 +11015,7 @@ mybanner() {
|
|||||||
bb1=$(cat <<EOF
|
bb1=$(cat <<EOF
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
$PROG_NAME $VERSION from
|
$PROG_NAME $VERSION from
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
bb2=$(cat <<EOF
|
bb2=$(cat <<EOF
|
||||||
@ -11034,9 +11034,13 @@ EOF
|
|||||||
)
|
)
|
||||||
pr_bold "$bb1"
|
pr_bold "$bb1"
|
||||||
pr_boldurl "$SWURL"; outln
|
pr_boldurl "$SWURL"; outln
|
||||||
pr_bold " ("
|
if [[ -n "$idtag" ]]; then
|
||||||
pr_grey "$idtag"
|
#FIXME: if we run it not off the git dir we miss the version tag.
|
||||||
prln_bold ")"
|
# at least we don't want to display empty brackets here...
|
||||||
|
pr_bold " ("
|
||||||
|
pr_grey "$idtag"
|
||||||
|
prln_bold ")"
|
||||||
|
fi
|
||||||
pr_bold "$bb2"
|
pr_bold "$bb2"
|
||||||
pr_boldurl "https://testssl.sh/bugs/"; outln
|
pr_boldurl "https://testssl.sh/bugs/"; outln
|
||||||
pr_bold "$bb3"
|
pr_bold "$bb3"
|
||||||
|
Loading…
Reference in New Issue
Block a user