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

PATH change should be lower #8

Open
NekoiNemo opened this issue Aug 14, 2024 · 0 comments
Open

PATH change should be lower #8

NekoiNemo opened this issue Aug 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NekoiNemo
Copy link

# Setup the path to include local node
PATH=$PWD/node/bin:$PATH

# Get the directory of the script
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
pushd $SCRIPT_DIR

This adds $PWD/node/bin to the PATH before actually changing into the script's dir, meaning $PWD would evaluate to user's home dir when running the script from the systemd service.

Those two blocks should probably be in the opposite order.

See: issue in Discord

@RDIL RDIL added the bug Something isn't working label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants