Search code examples
ubuntugdrive

GDRIVE :syntax error near unexpected token `newline'


I've been using Gdrive for a while and it helped me save a lot of time but now when I tried installing it elsewhere I get

/usr/local/bin/gdrive: line 2: syntax error near unexpected token `newline'
/usr/local/bin/gdrive: line 2: <! DOCTYPE HTML>

I'm following this tutotrial so I if you fixed it please help me fix it too and thank you


Solution

  • You need to choose the correct version for your machine type. You can find it in https://github.com/prasmussen/gdrive/releases.