a couple of ideas..depends if you want to make this version usable by all or not. I don't have that.
~/bin/ by default is in the path per the .profile so I put rclone in there:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
I have an update script in ~/bin/ that calls this:
go get -u -v github.com/ncw/rclone/...
go get -u -v github.com/ncw/rclone
I can now update for just myself and I dont need sudo but it will drop the rclone binary into ~/bin/
If I wanted to do this for all, I would almost compile in my directory and then rename any existing and copy my new one into /usr/local/bin with the proper permissions. That way if the new one has errors, I can revert back just by renaming rclone to rclone.bad and rclone.bak to rclone. It gives you an out in case the git pull is crud.
Oh, new rclone supports writing..go pull it from source