fix missing space in banner and suppress empty version string

This commit is contained in:
Dirk 2017-04-05 20:39:35 +02:00
parent ec55cdea14
commit 61d42b022c

View File

@ -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"