Open AMDphreak opened 1 day ago
Looking inside the script file, it is apparent that the script should already set the path variable. I guess I just forgot to refresh the shell after running the downloaded script. Doesn't change the cyclic dependency though
# * early-bound: export PATH="/home/myuser/.myapp:$PATH"
# * late-bound: export PATH="$HOME/.myapp:$PATH"
export PATH="$_install_dir_expr:\$PATH"
The migration guide section for Windows using WSL does not function properly. After running 'curl -fsSL https://docs.grit.io/install | bash' within the source code directory, the new bash instance does not have 'grit' included in the path variable. I am using an Ubuntu WSL image.
UPDATE Did some more diagnosing, turns out the pipe command does literally nothing for the user. Why are you piping the output of a curl statement without accessing the piped output in your bash command after the pipe? You made the terminal print the file into the void. The curl command literally produces the text from the file, not a file. You need to pipe this crap into a file, then run that file in the new bash instance.
curl -fsSL https://docs.grit.io/install > grit_install_script.sh | bash
./grit_install_script.sh
In addition, you need to include the install location in the user path variable, because this is what happens if you don't:
So add this command after the execution:
export PATH=$PATH:$HOME/.grit/bin
to append the install location after this, you do not need to dogrit install
it is redundant at this point. The problem with your script is you needed grit installed in order to run thegrit install
command, which makes a cyclic dependency.Original post excerpt: