Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

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

Open
rubin55 wants to merge 2 commits into
lexical-lsp:mainfrom
rubin55:small-script-fixes
Open

Small script fixes (Make which truly silent and make start_lexical.sh symbolic-link friendly)#844
rubin55 wants to merge 2 commits into
lexical-lsp:mainfrom
rubin55:small-script-fixes

Conversation

@rubin55

@rubin55 rubin55 commented Dec 16, 2024

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant