Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error #31

Open
Saidis00 opened this issue Mar 22, 2020 · 6 comments
Open

Syntax error #31

Saidis00 opened this issue Mar 22, 2020 · 6 comments

Comments

@Saidis00
Copy link

Checking dependencies...OK
Download Page 1
- done!
Download Wallpapers from Page 1
./wallhaven.sh: line 173: ((: 1 >= : syntax error: operand expected (error token is ">= ")

@macearl
Copy link
Owner

macearl commented Mar 22, 2020

Could you provide some more information?
Which system are you running, which shell, which parameters did you set in the script, are you using the latest commit?

I haven't used the script in a while, but a quick test download worked on my side.

@opabravo
Copy link

Same
After removing the function to check if reached the last page
It still cant download wallpaperers while rinning with no errors

@macearl
Copy link
Owner

macearl commented Apr 18, 2020

my previous comment also applies here.
I just tested the script again on my side and it seems to work fine, so i need more information to be able to pinpoint this issue or even reproduce it.

@opabravo
Copy link

My bad, I just figured out that my internet caused that error

@mort8088
Copy link

I was getting this error and I've added an echo line just before line 173 :-
echo "$page"+">="+"$(jq -r ".meta.last_page" tmp)"
I'm not very well versed in bash (I asumed I needed the + for string concatanization)
because I don't get the error for every file download request I see :-

35+>=+35
	Wallpaper %WallpaperURL% already downloaded!

for files that I already have and on line with the error I see :-

33+>=+
%pathToScript%: line 175: ((: 33 >=  : syntax error: operand expected (error token is ">=  ")

from this I can see that "$(jq -r ".meta.last_page" tmp)" sometimes results in a blank string don't know why yet.
still looking into it.

@macearl
Copy link
Owner

macearl commented Jun 17, 2020

try integrating a read command around there and take a look at tmp when the error happens, it might be that you exceeded the api limitations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants