checkcerts.sh: remove unnecessary echos

This commit is contained in:
kytv
2014-06-29 11:37:24 +00:00
parent 9827c48527
commit f1a738340f

View File

@ -95,7 +95,7 @@ checkcert() {
# Certtool's format: Mon Mar 07 16:08:35 UTC 2022 # Certtool's format: Mon Mar 07 16:08:35 UTC 2022
DATA=$(certtool -i < "$1" | sed -e '/Not\sAfter/!d' -e 's/^.*:\s\(.*\)/\1/') DATA=$(certtool -i < "$1" | sed -e '/Not\sAfter/!d' -e 's/^.*:\s\(.*\)/\1/')
# The formatting is normalized for passing to the date2julian function (if needed) # The formatting is normalized for passing to the date2julian function (if needed)
set -- `echo $DATA` set -- $DATA
DATA="$2 $3 $4 $6 GMT" DATA="$2 $3 $4 $6 GMT"
fi fi
echo $DATA echo $DATA
@ -128,7 +128,7 @@ compute_dates() {
SECS=$(date -u -d "$EXPIRES" '+%s') SECS=$(date -u -d "$EXPIRES" '+%s')
DAYS="$(expr \( $SECS - $NOW \) / 86400)" DAYS="$(expr \( $SECS - $NOW \) / 86400)"
else else
set -- `echo $EXPIRES` set -- $EXPIRES
# date2julian needs the format mm dd yyyy # date2julian needs the format mm dd yyyy
SECS=$(date2julian `getmonth $1` $2 $4) SECS=$(date2julian `getmonth $1` $2 $4)
DAYS=$(expr $SECS - $NOW) DAYS=$(expr $SECS - $NOW)