macearl / Wallhaven-Downloader

A simple download Script for Wallhaven.cc
126 stars 26 forks source link

Syntax error on execution #11

Closed jferch closed 8 years ago

jferch commented 8 years ago

Hey there,

first of all thanks for sharing this script. I'm experiencing the following error while trying to pull my favorites section and can't figure it out:

./wallhaven.sh: line 265: ((: count< 48 && count<  : syntax error: operand expected (error token is "<  ")

I copied the line from the script:

for (( count=0, page="$STARTPAGE"; count< "$WPNUMBER" && count< "$favnumber" ; count=count+64, page=page+1 ));

Any ideas why this is happening? I'm running Arch with the latest packages installed. Let me know if you need more information. Thanks!

macearl commented 8 years ago

Should be fixed now, its a bit ugly but given that the whole favorites thing needs to be replaced to be able to download more than the default collection it should suffice

jferch commented 8 years ago

Yes, the issue is resolved, thank you very much!