Export Path Working from Terminal but Not Bash Script
If I Run Export Path=$Path: /Home/Mike/Bin/*: /Home/Mike/App/* from a Command Line It Works Fine, but If I Put It into a Bash Script, It Doesn't Work (Even...
If I run export PATH=$PATH:/home/mike/bin/*:/home/mike/app/* from a command line it works fine, but if I put it into a bash script, it doesn't work (even with a restart). I have also tried including double-quotes and curly brackets for the variables.
1 Answer
You should only add path in this environnement in this variable. Change your script to use the following command
export PATH="$PATH:/home/mike/bin/:/home/mike/app/"