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

create /usr/local/bin if it does not exist #5

Open
albinkc opened this issue Dec 22, 2024 · 0 comments
Open

create /usr/local/bin if it does not exist #5

albinkc opened this issue Dec 22, 2024 · 0 comments

Comments

@albinkc
Copy link

albinkc commented Dec 22, 2024

on a freshly installed macOS 15.2 VM, the /usr/local/bin directory does not exist and I get the following error:

albin@Albins-Virtual-Machine configs % curl -fsSL https://get.comtrya.dev | sudo sh
arm64
Downloading package https://github.com/comtrya/comtrya/releases/download/v0.9.0/comtrya-aarch64-apple-darwin as /tmp/comtrya-aarch64-apple-darwin
Download complete.

============================================================
  The script was run as a user who is unable to write
  to /usr/local/bin. To complete the installation the
  following commands may need to be run manually.
============================================================

  sudo cp comtrya-aarch64-apple-darwin /usr/local/bin/comtrya
  sudo ln -sf /usr/local/bin/comtrya /usr/local/bin/comtrya

albin@Albins-Virtual-Machine configs % sudo cp comtrya-aarch64-apple-darwin /usr/local/bin/comtrya
cp: /usr/local/bin/comtrya: No such file or directory

It can be created with sudo mkdir -p /usr/local/bin
Unsure the best approach here.
Warn User or create if not exists?

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