Skip to content

Commit 7b586ed

Browse files
author
srvrco
committed
updated variable for auto upgrade location (2017-01-31)
1 parent 0f895ec commit 7b586ed

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

checkssl

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@
4343
# 2017-01-01 updated checks from shellcheck (1.13)
4444
# 2017-01-09 correct typo in cleanup (to remove all tmp files) (1.14)
4545
# 2017-01-12 updated to ignore -r flag if -c is used. (1.15)
46+
# 2017-01-31 updated variable for auto upgrade location (1.16)
4647
# ---------------------------------------------------------------------------
4748

4849
PROGNAME=${0##*/}
49-
VERSION="1.15"
50+
VERSION="1.16"
5051

5152
ORIGCMD="$0 $*"
52-
UPDATE_LOCATION="https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
53+
CODE_LOCATION="https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
5354
RENEW_ALERT="30" # set to number of days to be alerted for certificate renewal ( default, can be changed with -expires argument)
5455
_QUIET=0
5556
_UPGRADE=0
@@ -178,7 +179,7 @@ info() {
178179
}
179180

180181
check_upgrade () {
181-
latestcode=$(curl --silent "$UPDATE_LOCATION")
182+
latestcode=$(curl --silent "$CODE_LOCATION")
182183
latestversion=$(echo "$latestcode" | grep VERSION= | head -1| awk -F'"' '{print $2}')
183184
latestvdec=$(echo "$latestversion"| tr -d '.')
184185
localvdec=$(echo "$VERSION"| tr -d '.' )

0 commit comments

Comments
 (0)