Skip to content

Commit

Permalink
make no output when -u is only arg and no upgrade available (2017-02-22)
Browse files Browse the repository at this point in the history
  • Loading branch information
srvrco committed Feb 22, 2017
1 parent 525fbe2 commit b103f1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion checkssl
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@
# 2017-01-12 updated to ignore -r flag if -c is used. (1.15)
# 2017-01-31 updated variable for auto upgrade location (1.16)
# 2017-02-06 merge branches parsing CN and wildcard certs (1.17)
# 2017-02-22 make no output when -u is only arg and no upgrade available (1.18)
# ---------------------------------------------------------------------------

PROGNAME=${0##*/}
VERSION="1.17"
VERSION="1.18"

ORIGCMD="$0 $*"
CODE_LOCATION="https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
Expand Down Expand Up @@ -263,6 +264,9 @@ _requires column
# Check if upgrades are available (unless they have specified -U to ignore Upgrade checks)
if [[ $_UPGRADE_CHECK -eq 1 ]]; then
check_upgrade
if [[ ! $FILEARG && ! $SERVERARG && ! $LOCATIONARG && ! $DOMAINARG ]]; then
graceful_exit
fi
fi

if [[ ! $FILEARG && ! $SERVERARG && ! $LOCATIONARG && ! $DOMAINARG ]]; then
Expand Down

0 comments on commit b103f1b

Please sign in to comment.