Try fixing date again

This commit is contained in:
Dessalines 2018-11-26 14:08:56 -07:00
parent b73321212b
commit b6ee573d4f
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ for torrent_file in *.torrent; do
leechers=$(jq -r '.peers' <<< $health_text)
completed=$(jq -r '.completed' <<< $health_text)
date_string=$(jq -r '.created' <<< $health_text)
if [ -z $date_string ]; then
if [ "$date_string" == "null" ]; then
echo "Date was null, setting to now"
created_date=$(date +%s)
else