Skip to content
This repository has been archived by the owner on Oct 24, 2019. It is now read-only.

Use tee to work around permission issues with sudo #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ftzdomino
Copy link

sudo doesn't apply the the stdout redirect, so this change pipes to "sudo tee" in order to write the file

sudo doesn't apply the the stdout redirect, so this change pipes to "sudo tee" in order to write the file
@pavelsr
Copy link

pavelsr commented Aug 26, 2019

I think the best option is to use curl -o option instead:

sudo curl https://raw.githubusercontent.com/universal-ctags/ctags-docker/master/uctags -o /usr/local/bin/uctags

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

Successfully merging this pull request may close these issues.

2 participants