|
|
|
@ -55,7 +55,7 @@ else
|
|
|
|
|
# If the directory is not in the PATH variable, check if the action is 'add' |
|
|
|
|
if [ "$action" = "add" ]; then |
|
|
|
|
# If the action is 'add', append the directory to the PATH variable in the '.bashrc' file |
|
|
|
|
echo "export PATH=$PATH:$directory" >> "$HOME/.bashrc" |
|
|
|
|
echo "export PATH=\$PATH:$directory" >> "$HOME/.bashrc" |
|
|
|
|
echo "The directory has been added to your PATH." |
|
|
|
|
else |
|
|
|
|
# If the action is 'remove' and the directory is not in the PATH variable, display an error message |
|
|
|
|