Skip to content

Document safe Linux release installation - #138

Merged
Shengyu Fu (shengyfu) merged 1 commit into
mainfrom
shengyfu-safe-linux-release-install
Sep 7, 2026
Merged

Shengyu Fu (shengyfu) merged 1 commit into
mainfrom
shengyfu-safe-linux-release-install

Conversation

@shengyfu

Copy link
Copy Markdown
Member

Summary

  • extract the Linux release archive into a fresh temporary directory
  • install only the tgrep binary into ~/.local/bin
  • document why direct extraction into an existing binary directory is avoided

Validation

  • verified the v1.0.4 Linux archive layout contains ./, ./tgrep, and ./README.md
  • validated the updated shell snippet with bash -n

Fixes #136

Extract release archives into a temporary directory and install only the tgrep binary so archive metadata cannot alter ~/.local/bin.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 010dddbc-d242-4b2b-bbb7-9d3d66136013
Copilot AI balanced review requested due to automatic review settings September 7, 2026 06:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The documented commands correctly address the unsafe archive directory entry.

Review tier: Balanced
Findings: None

What changed in this PR

Documents a safer Linux release installation flow that avoids modifying metadata on ~/.local/bin.

Changes:

  • Extracts the archive into a fresh temporary directory.
  • Installs only the tgrep binary and removes temporary files.
  • Explains why direct extraction is avoided.
File Description
README.md Updates Linux installation instructions with safe temporary extraction.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@shengyfu
Shengyu Fu (shengyfu) merged commit e2007b5 into main Sep 7, 2026
10 checks passed
@shengyfu
Shengyu Fu (shengyfu) deleted the shengyfu-safe-linux-release-install branch September 7, 2026 06:44
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.

Linux release tarball contains unsafe ./ directory entry

2 participants