thepeacockproject / linux-steam-setup

Helper scripts and utilities for running Peacock on Linux, mainly targeting the Steam version of the game.
https://thepeacockproject.org/wiki/guides/linux-setup
17 stars 2 forks source link

PATH change should be lower #8

Open NekoiNemo opened 2 months ago

NekoiNemo commented 2 months ago
# 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