Browse Source

make no output when -u is only arg and no upgrade available (2017-02-22)

pull/17/head v1.18
srvrco 9 years ago
parent
commit
b103f1b24f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      checkssl

+ 5
- 1
checkssl View File

@ -45,10 +45,11 @@
# 2017-01-12 updated to ignore -r flag if -c is used. (1.15) # 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-01-31 updated variable for auto upgrade location (1.16)
# 2017-02-06 merge branches parsing CN and wildcard certs (1.17) # 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##*/} PROGNAME=${0##*/}
VERSION="1.17"
VERSION="1.18"
ORIGCMD="$0 $*" ORIGCMD="$0 $*"
CODE_LOCATION="https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl" CODE_LOCATION="https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
@ -263,6 +264,9 @@ _requires column
# Check if upgrades are available (unless they have specified -U to ignore Upgrade checks) # Check if upgrades are available (unless they have specified -U to ignore Upgrade checks)
if [[ $_UPGRADE_CHECK -eq 1 ]]; then if [[ $_UPGRADE_CHECK -eq 1 ]]; then
check_upgrade check_upgrade
if [[ ! $FILEARG && ! $SERVERARG && ! $LOCATIONARG && ! $DOMAINARG ]]; then
graceful_exit
fi
fi fi
if [[ ! $FILEARG && ! $SERVERARG && ! $LOCATIONARG && ! $DOMAINARG ]]; then if [[ ! $FILEARG && ! $SERVERARG && ! $LOCATIONARG && ! $DOMAINARG ]]; then


Loading…
Cancel
Save