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

Your commands to install Autoplug in linux do not work, due to the link to the raw file being outdated? or incorrectly formatted? #238

Closed
harryeffinpotter opened this issue Apr 30, 2024 · 8 comments

Comments

@harryeffinpotter
Copy link

This line does not work on linux:
curl -o AutoPlug-Client.jar https://github.com/Osiris-Team/AutoPlug-Releases/raw/master/beta-builds/AutoPlug-Client.jar

This line does:
curl -o AutoPlug-Client.jar https://raw.githubusercontent.com/Osiris-Team/AutoPlug-Releases/master/beta-builds/AutoPlug-Client.jar

I'm guessing git changed how they store raw files and this probably used to work.
I noticed the file result to your suggested manual install commands was 0 bytes and dug futher.

Hope this helps!

@Osiris-Team
Copy link
Owner

@harryeffinpotter Great, yeah, weirdly enough, in the browser both links work.
Thanks, will add it to the site once I got time to work on autoplug again ;)

@Minionguyjpro
Copy link
Contributor

@harryeffinpotter Great, yeah, weirdly enough, in the browser both links work. Thanks, will add it to the site once I got time to work on autoplug again ;)

Probably the first link redirects to the second one and curl isn't set up to follow the redirects, while a browser does?

@Minionguyjpro
Copy link
Contributor

@harryeffinpotter Great, yeah, weirdly enough, in the browser both links work. Thanks, will add it to the site once I got time to work on autoplug again ;)

Probably the first link redirects to the second one and curl isn't set up to follow the redirects, while a browser does?

Yeah this is the case. I also ran into the same 0 byte issue with curl with the first link, but if I'd run it with the -L parameter then it works and downloads the file correctly. That first link just redirects to the second one, thus if you'd use curl without it making sure to follow redirects then the generated file will be zero bytes. So that it doesn't work is just due to redirects...

@Osiris-Team
Copy link
Owner

fixed, will update web in a bit

@harryeffinpotter
Copy link
Author

@harryeffinpotter Great, yeah, weirdly enough, in the browser both links work. Thanks, will add it to the site once I got time to work on autoplug again ;)

Probably the first link redirects to the second one and curl isn't set up to follow the redirects, while a browser does?

Yeah this is the case. I also ran into the same 0 byte issue with curl with the first link, but if I'd run it with the -L parameter then it works and downloads the file correctly. That first link just redirects to the second one, thus if you'd use curl without it making sure to follow redirects then the generated file will be zero bytes. So that it doesn't work is just due to redirects...

AHH I always forget the dang argument to follow redirects. My man.

@harryeffinpotter
Copy link
Author

So

curl -Lo AutoPlug-Client.jar https://github.com/Osiris-Team/AutoPlug-Releases/raw/master/beta-builds/AutoPlug-Client.jar

would work, yeah?

@harryeffinpotter
Copy link
Author

oope, he said he fixed it, was just curious for my own sake.

@harryeffinpotter
Copy link
Author

curl -Lo AutoPlug-Client.jar https://github.com/Osiris-Team/AutoPlug-Releases/raw/master/beta-builds/AutoPlug-Client.jar

indeed it does fix, good call.

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

No branches or pull requests

3 participants