google / oauth2l

oauth2l ("oauth tool") is a simple CLI for interacting with Google API authentication.
Apache License 2.0
652 stars 81 forks source link

syntax error in linux pre-compiled binary #129

Closed yan-hic closed 2 years ago

yan-hic commented 2 years ago

Trying to install on ARMv7 BusyBox (router) using the pre-compiled binary.

Downloaded, decompressed and set as executable with chmod +x oauth2l.

Upon running the tool though, I get ./oauth2l: line 2: syntax error: unterminated quoted string

andyrzhao commented 2 years ago

Hi there, that error does not look related to oauth2l itself. Are you trying to run oauth2l as part of a script? If so, I would double check to make sure the script has the correct syntax. Thanks!

yan-hic commented 2 years ago

Found out that such error typically occur when trying to run a 64bit code in a 32bit OS. ARMv7 is 32bit... Any chance you can release a Linux pre-compiled 32bit binary ? That would allow to use the tool on routers with Qualcomm ARMv7 - many.

yan-hic commented 2 years ago

Closing as I learned compiling with go for any arch is straightforward. I did for linux/arm and the tool works just fine on ARMv7.