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

Enhancement: Run scripts using a working directory of the script path #105

Open
klauer opened this issue Jul 22, 2022 · 0 comments
Open

Comments

@klauer
Copy link
Contributor

klauer commented Jul 22, 2022

Suggestion

  • For external scripts, ensure that the working directory is set to the script path
  • For example, if a script is in /tmp/scriptname.sh, LUCID should run it with a working directory of /tmp.
  • This would avoid users having to manually do a cd /absolute/path or a cd $(BASH_SOURCE...)-style incantation

Background

I haven't dug into the code just yet, so perhaps something else is wrong here. Anecdotally, I've had a couple people fix their LUCID commands by just cd'ing to the appropriate path as a first step in their script

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