I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f1a73834 authored by kytv's avatar kytv
Browse files

checkcerts.sh: remove unnecessary `echo`s

parent 9827c485
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ checkcert() {
# Certtool's format: Mon Mar 07 16:08:35 UTC 2022
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)
set -- `echo $DATA`
set -- $DATA
DATA="$2 $3 $4 $6 GMT"
fi
echo $DATA
......@@ -128,7 +128,7 @@ compute_dates() {
SECS=$(date -u -d "$EXPIRES" '+%s')
DAYS="$(expr \( $SECS - $NOW \) / 86400)"
else
set -- `echo $EXPIRES`
set -- $EXPIRES
# date2julian needs the format mm dd yyyy
SECS=$(date2julian `getmonth $1` $2 $4)
DAYS=$(expr $SECS - $NOW)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment