[PR #266] [MERGED] feat(installer): prefer /usr/local/bin and improve POSIX compatibility #2233

Closed
opened 2026-05-03 05:57:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/newt/pull/266
Author: @LaurenceJJones
Created: 3/10/2026
Status: Merged
Merged: 3/10/2026
Merged by: @oschwartz10612

Base: devHead: enhance-installer


📝 Commits (1)

  • 32d48c7 feat(installer): prefer /usr/local/bin and improve POSIX compatibility

📊 Changes

1 file changed (+73 additions, -46 deletions)

View changed files

📝 get-newt.sh (+73 -46)

📄 Description

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

  • Always install to /usr/local/bin instead of ~/.local/bin
  • Use sudo automatically when write access is needed
  • Replace bash-specific syntax with POSIX equivalents:
    • Change shebang from #!/bin/bash to #!/bin/sh
    • Replace [[ == pattern ]] with case statements
    • Replace echo -e with printf for colored output
  • Script now works with dash, ash, busybox sh, and bash

How to test?

Installer semantics, instead of curl | bash. Download the script and install onto the system.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/newt/pull/266 **Author:** [@LaurenceJJones](https://github.com/LaurenceJJones) **Created:** 3/10/2026 **Status:** ✅ Merged **Merged:** 3/10/2026 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `enhance-installer` --- ### 📝 Commits (1) - [`32d48c7`](https://github.com/fosrl/newt/commit/32d48c7d23ac70fdcc1988cf962f1fff73f421b3) feat(installer): prefer /usr/local/bin and improve POSIX compatibility ### 📊 Changes **1 file changed** (+73 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `get-newt.sh` (+73 -46) </details> ### 📄 Description ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description - Always install to /usr/local/bin instead of ~/.local/bin - Use sudo automatically when write access is needed - Replace bash-specific syntax with POSIX equivalents: - Change shebang from #!/bin/bash to #!/bin/sh - Replace [[ == *pattern* ]] with case statements - Replace echo -e with printf for colored output - Script now works with dash, ash, busybox sh, and bash ## How to test? Installer semantics, instead of `curl | bash`. Download the script and install onto the system. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-03 05:57:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#2233