diff --git a/getssl b/getssl index 0f365b2..3aaea7e 100755 --- a/getssl +++ b/getssl @@ -118,10 +118,11 @@ # 2016-10-03 check remote certificate for right domain before saving to local (1.52) # 2016-10-04 allow existing CSR with domain name in subject (1.53) # 2016-10-05 improved the check for CSR with domain in subject (1.54) +# 2016-10-06 prints update info on what was included in latest updates (1.55) # --------------------------------------------------------------------------- PROGNAME=${0##*/} -VERSION="1.54" +VERSION="1.55" # defaults CODE_LOCATION="https://raw.githubusercontent.com/srvrco/getssl/master/getssl" @@ -151,6 +152,7 @@ _QUIET=0 _MUTE=0 _UPGRADE=0 _UPGRADE_CHECK=1 +_RECREATE_CSR=0 # store copy of original command in case of upgrading script and re-running ORIGCMD="$0 $*" @@ -243,6 +245,10 @@ check_getssl_upgrade() { # check if a more recent version of code is available a if [ ${_MUTE} -eq 0 ]; then echo "Updated getssl from v${VERSION} to v${latestversion}" echo "these update notification can be turned off using the -Q option" + echo "" + echo "Updates are;" + echo "$latestcode" | awk "/\(${pf}\)$/ {s=1} s; /\(${pt}\)$/ {s=0}" | awk '{if(NR>1)print}' + echo "" fi eval "$ORIGCMD" graceful_exit