Skip to content

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

Open
@robertdahlem

Description

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

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions