Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automate installation of shell scripts #544

Open
mcandre opened this issue Oct 21, 2024 · 0 comments
Open

automate installation of shell scripts #544

mcandre opened this issue Oct 21, 2024 · 0 comments

Comments

@mcandre
Copy link
Owner

mcandre commented Oct 21, 2024

Provide a short, simple, copy & paste friendly command to install shell script applications.

Follow modern best practices, such as separating the curl / wget download from script execution into two separate commands, for security and auditing purposes.

Document a requirement that at least one POSIX compliant shell is available to run the (POSIX sh based) installer.

Document a requirement that curl and tar are installed.

Similar to RVM, chruby, and other common shell based installers, we could check for ~/.profile (bash family), ~/.zshrc (zsh), ~/.kshrc (ksh), ? (fish), ? (Plan 9 rc), ? (ion). When a matching file is found, then automatically append a PATH appending command to the file, and log that this has been done to the file.

Research (ideally POSIX sh) tools to aid this process. Hopefully, those tools have gone through a lot of testing, although they likely are not thinking about extreme portability and probably artificially exclude many fringe platforms.

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

No branches or pull requests

1 participant