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

Small script fixes (Make which truly silent and make start_lexical.sh symbolic-link friendly) #844

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rubin55
Copy link

@rubin55 rubin55 commented Dec 16, 2024

Currently, you actually have to be in the directory that contains bin/start_lexical.sh or run the script with an absolute (full) path. Whilst packaging this for Arch Linux I ran into the issue that the script cannot be simply linked to (since BASH_SOURCE[0] will then resolve as /usr/bin instead).

This PR makes it so that the script will also work when soft-linked to (using ln -s - the script uses readlink to find the real path of the script).

Additionally, this PR silences the two which statements (on some (all?) platforms, like Arch Linux, the output of which when a command is not found, goes to stderr).

@rubin55 rubin55 changed the title Small script fixes (Make which truly silent and make start_lexical.sh symbolid-link friendly) Small script fixes (Make which truly silent and make start_lexical.sh symbolic-link friendly) Dec 16, 2024
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

Successfully merging this pull request may close these issues.

1 participant