Skip to content

Improve install/uninstall scripts for non-root #50

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Barbiero
Copy link

@Barbiero Barbiero commented May 29, 2025

I've changed the (un)install scripts so that they are a bit more robust

  • You can now use options like -i and -s to explicitly set the install directory or the symlink path
  • it can create symlinks without sudo if the current user has permission to do so on the target symlink path
  • ensure that the target symlink path exists so we don't get cryptic errors if the user forgot to mkdir.
  • you can now install phpctl from a local repo with -l, mostly useful when you already cloned this repo and don't want to fetch from github
  • use tput for terminal colors if possible
  • can now uninstall without sudo

Also:

  • remove the phtpctl.dev reference from install.md since that URL is no longer accessible (See Is this still being maintained? #49)
  • add an editorconfig just so my IDE/shfmt won't try to change every single whitespace indent

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