This three line bash script that I wrote,
#! /bin/bash
cd /home/me/path/to/project
source ../../bin/activate
is located in the directory '~/scripts'. I wrote it in order to make it faster to move to a subdirectory for a project that has a long name. This project is written in Python so the second line
source ../../bin/activate
activates the virtualenv where the depencies are installed. However, when I run,
bash script.sh
in '~/scripts' nothing happens. I have run the code manually and verified that it works correctly. Additionally, today is the first time I have observed this behavior. Am I missing something obvious? Why doesn't this work? The only related action I have taken between the last time I ran the script and now was to copy the directory housing the entire project onto a backup hard drive. I am on Ubuntu 18.04.5 LTS