Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
Barbiero wants to merge 5 commits into opencodeco:main
base: main
Choose a base branch
Loading
from Barbiero:main

Conversation

@Barbiero
Copy link

@Barbiero Barbiero commented May 29, 2025
edited
Loading

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /