Skip to content

Remove sudo from tee cmd as we're already in sudo cmd mode.#10291

Open
BeauSmyth19901 wants to merge 1 commit intoMicrosoftDocs:livefrom
BeauSmyth19901:patch-1
Open

Remove sudo from tee cmd as we're already in sudo cmd mode.#10291
BeauSmyth19901 wants to merge 1 commit intoMicrosoftDocs:livefrom
BeauSmyth19901:patch-1

Conversation

@BeauSmyth19901
Copy link
Contributor

@BeauSmyth19901 BeauSmyth19901 commented Mar 4, 2026

Just reading through the docs on this and caught what I think is a possible copy/paste mistake.
Since the steps begin with an invocation of sudo su I think that means we should be able to invoke tee without it until exit is invoked.

@prmerger-automator
Copy link
Contributor

@BeauSmyth19901 : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 60c3398:

✅ Validation status: passed

File Status Preview URL Details
docs/linux/includes/odbc-ubuntu.md ✅Succeeded

For more details, please refer to the build report.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Ubuntu ODBC installation include to remove a redundant sudo from a tee command when the instructions have already switched into a root shell via sudo su.

Changes:

  • Remove sudo from the tee invocation used to install the Microsoft repository GPG key (Ubuntu 18.04 tab).


```bash
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
curl https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change removes sudo from tee in the Ubuntu 18.04 tab because the preceding step uses sudo su. However, the Ubuntu 20.04 and 22.04 tabs in this same include still use sudo tee for the same key import while also starting with sudo su, so the instructions become inconsistent and the PR title/description reads broader than the actual change. Consider making the same update in the other tabs (or alternatively, drop the sudo su step and keep per-command sudo) so the guidance is consistent.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BeauSmyth19901 If you can make the change recommended here, I'll get it merged.

@ttorble
Copy link
Contributor

ttorble commented Mar 4, 2026

@rwestMSFT

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged tracking label for the PR review team label Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants