Skip to content

autoinstall.sh: change format of sudo tee invocations#572

Open
aaronmrice wants to merge 1 commit intoonlaj:masterfrom
aaronmrice:autoinstall-change-sudo-tee-invocations
Open

autoinstall.sh: change format of sudo tee invocations#572
aaronmrice wants to merge 1 commit intoonlaj:masterfrom
aaronmrice:autoinstall-change-sudo-tee-invocations

Conversation

@aaronmrice
Copy link

The original code tells the shell to invoke cat and sudo tee, pipe a message into cat's stdin, pipe cat's stdout (that same message) into tee's stdin, which then has elevated privileges to write to disk.

We can skip the middleman of cat and pipe the message directly into sudo tee's stdin.

The original code tells the shell to invoke `cat` and `sudo tee`, pipe a
message into cat's stdin, pipe cat's stdout (that same message) into
tee's stdin, which then has elevated privileges to write to disk.

We can skip the middleman of `cat` and pipe the message directly into
`sudo tee`'s stdin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant