Commit 7b586ed srvrco
committed
1 parent 0f895ec commit 7b586ed Copy full SHA for 7b586ed
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 43
43
# 2017-01-01 updated checks from shellcheck (1.13)
44
44
# 2017-01-09 correct typo in cleanup (to remove all tmp files) (1.14)
45
45
# 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)
46
47
# ---------------------------------------------------------------------------
47
48
48
49
PROGNAME=${0##*/ }
49
- VERSION=" 1.15 "
50
+ VERSION=" 1.16 "
50
51
51
52
ORIGCMD=" $0 $* "
52
- UPDATE_LOCATION =" https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
53
+ CODE_LOCATION =" https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
53
54
RENEW_ALERT=" 30" # set to number of days to be alerted for certificate renewal ( default, can be changed with -expires argument)
54
55
_QUIET=0
55
56
_UPGRADE=0
@@ -178,7 +179,7 @@ info() {
178
179
}
179
180
180
181
check_upgrade () {
181
- latestcode=$( curl --silent " $UPDATE_LOCATION " )
182
+ latestcode=$( curl --silent " $CODE_LOCATION " )
182
183
latestversion=$( echo " $latestcode " | grep VERSION= | head -1| awk -F' "' ' {print $2}' )
183
184
latestvdec=$( echo " $latestversion " | tr -d ' .' )
184
185
localvdec=$( echo " $VERSION " | tr -d ' .' )
You can’t perform that action at this time.
0 commit comments