I'm trying to create a bash script that will let me augment the path everytime I execute it. Here is the code I have to point towards where I'm going:
#!/bin/bash
#script to augment path
echo "what directories do you want to add:"
read MYNEWPATH
echo "adding the "$MYNEWPATH" directory to PATH"
export PATH
echo "your new env variable is now:"
echo $PATH
exit 0
when i run it and cmd asks for a new directory, I enter the directory i want to add but it says "line 6: PATH: command not found"
Open for all suggestions, thanks in advance.