From b6ee573d4f2a3a66b602a68ac34d73836dbf25c5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 26 Nov 2018 14:08:56 -0700 Subject: [PATCH] Try fixing date again --- scripts/scan_torrents.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scan_torrents.sh b/scripts/scan_torrents.sh index 0d0ac1f..09a1ab8 100755 --- a/scripts/scan_torrents.sh +++ b/scripts/scan_torrents.sh @@ -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