Skip to content

Commit b103f1b

Browse files
author
srvrco
committed
make no output when -u is only arg and no upgrade available (2017-02-22)
1 parent 525fbe2 commit b103f1b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

checkssl

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@
4545
# 2017-01-12 updated to ignore -r flag if -c is used. (1.15)
4646
# 2017-01-31 updated variable for auto upgrade location (1.16)
4747
# 2017-02-06 merge branches parsing CN and wildcard certs (1.17)
48+
# 2017-02-22 make no output when -u is only arg and no upgrade available (1.18)
4849
# ---------------------------------------------------------------------------
4950

5051
PROGNAME=${0##*/}
51-
VERSION="1.17"
52+
VERSION="1.18"
5253

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

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

0 commit comments

Comments
 (0)