From 123b3be87d9432f7a543a906a46bd809f926778a Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Tue, 29 Nov 2016 19:13:51 +0300 Subject: [PATCH] Fix false positive error that the cookie file is invalid when none was provided --- furaffinity-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/furaffinity-dl b/furaffinity-dl index ebbd2f0..0f47a2f 100755 --- a/furaffinity-dl +++ b/furaffinity-dl @@ -46,7 +46,7 @@ page_counter=1 # Iterate over the gallery pages with thumbnails and links to artwork view pages while true; do fwget -O "$tempfile" "$url" - if grep -q 'furaffinity.net/login/' "$tempfile"; then + if [ "$COOKIES_FILE" != "" ] grep -q 'furaffinity.net/login/' "$tempfile"; then echo "-------------- ERROR: You have provided a cookies file, but it does not contain valid cookies.