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

Error in run.sh for running CQ-editor #1696

Open
MatthewTromp opened this issue Oct 30, 2024 · 0 comments
Open

Error in run.sh for running CQ-editor #1696

MatthewTromp opened this issue Oct 30, 2024 · 0 comments

Comments

@MatthewTromp
Copy link

In doc/installation.rst, under the CQ-editor installation instructions, it says

To run from command.:

$HOME/cq-editor/run.sh

However if you try and run this command while not already inside the cq-editor directory, it fails.

birdpet@earth:~$ $HOME/cq-editor/run.sh

/home/birdpet/cq-editor/run.sh: 2: exec: bin/cq-editor: not found

run.sh runs exec bin/cq-editor, which is relative to the user's current directory, rather than the directory of the script. Either the documentation should be changed to tell users to first cd into the directory, or the contents of run.sh should be changed to something like the following:

#!/bin/bash
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )

cd "$parent_path"
exec bin/cq-editor
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

No branches or pull requests

1 participant