Try fixing date again
This commit is contained in:
parent
b73321212b
commit
b6ee573d4f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue