Skip to content

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

@albinkc

Description

@albinkc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions