gobinaries icon indicating copy to clipboard operation
gobinaries copied to clipboard

Post data output of uname instead of sudo sh

Open EmilStenstrom opened this issue 5 years ago • 2 comments

Prerequisites

  • [x] I searched to see if the issue already exists.

Description

Would it be possible the change the installation procedure, and remove the need for sudo sh, by posting the result of uname to the server?

I’m thinking something like this:

uname -s | curl --data-binary @- URL

Would that work and be worthwhile?

EmilStenstrom avatar Apr 06 '20 11:04 EmilStenstrom

Hmm yeah that could work! I guess the only downside is hurting the UX a bit, with having to -o to your bin dir and chmod.

The sudo is only necessary for the default /usr/local/bin though, we could maybe change that to ~/.bin or something, I wish there was a standard dir already in PATH there

tj avatar Apr 06 '20 11:04 tj

~/.bin idea is great. I think it shouldn't require sudo by default. I really look forward to this improvement, this would simplify my CI and Makefile quite a bit.

kakkoyun avatar Apr 09 '20 06:04 kakkoyun