Misleading error message when target directory does not exist

Open
#207 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
shell
Domain
cli

Research direction

Start with install.sh and inspect how it checks whether $TARGET is writable when /usr/local/bin does not exist. Reproduce the behavior on a clean macOS installation, including with sudo; done means the message accurately reflects the missing target directory rather than incorrectly prompting for sudo.

Written by the indexing model from the issue text.

Description

install.sh checks that $TARGET is writable, and if not it prompts the user to rerun the script using sudo.

On a clean macOS install, /usr/local/bin does not exist so the user gets this error message even when run using sudo.

Dominant language
Shell
Stars
29
Forks
19
Avg merge
3m
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from databricks/setup-cli

All issues in databricks/setup-cli

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.