So I am trying to write a script which compiles VMAF from the GIT and I need to change the PYTHONPATH location to the installation directory. The script is working good, and it is installing VMAF, but the problem is that when I source the changes in .bashrc it is valid until the bash script completes, and I want to make them globally. I understand that the bash process is isolating the changes but is there a way to execute the source that it persists the execution of the script? This is my code: #!/bin/bashmkdir $HOME/installsudo apt-get install python-dev python-pip python-tk -ysudo pip install --upgrade scikit-learn h5py numpy scipy matplotlib pandascd $HOME/installgit clone https://github.com/Netflix/vmaf.gitcd $HOME/install/vmafmakeecho export PYTHONPATH=$HOME/install/vmaf/python:\$PYTHONPATH | sudo tee -a $HOME/.bashrcecho alias ll='ls -al --color' | sudo tee -a $HOME/.bashrcsource $HOME/.bashrc./unittest
Source .bashrc file in bash globally
linux;bash;shell;python