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

install-man-page.sh should prefer /usr/bin over /bin #2229

Open
robertdahlem opened this issue Dec 12, 2024 · 0 comments
Open

install-man-page.sh should prefer /usr/bin over /bin #2229

robertdahlem opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@robertdahlem
Copy link

Describe the bug
When yq is found in /bin, install-man-page.sh creates /share/man/man1 and installs yq.1 there.

Version of yq: 4.44.6
Operating system: linux
Installed via: extracting yq_linux_amd64.tar.gz

Command
./install-man-page.sh

Actual behavior
creates /share/man/man1 and installs yq.1 there.

Expected behavior
installs yq.1 to /usr/share/man/man1

Additional context
Often /bin is a symbolic link to usr/bin and /bin is in PATH before /usr/bin. If you install yq to /usr/bin, then command -v yq finds yq in /bin

Fix
The script should include something like
export PATH=/usr/bin:$PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant