avoid cd in and out, loop through the file and install all the dependencies using pipx individually

pull/2029/head
James Aaron Erang 1 year ago
parent 9becf7a5da
commit 44fa637988
No known key found for this signature in database
GPG Key ID: D4D8E0B491964543

@ -109,12 +109,13 @@ function get_the_bot() {
function install_python_dep() {
# tell the user that the script is going to install the python dependencies
echo "Installing python dependencies"
# cd into the directory
cd RedditVideoMakerBot-master
# install the dependencies
pipx install -r requirements.txt
# cd out
cd ..
DEP_LIST=./RedditVideoMakerBot-master/requirements.txt
if [[ -f $DEP_LIST ]]; then
while read -r DEPS; do
pipx install $DEPS
done < "$DEP_LIST"
fi
}
# install playwright function

Loading…
Cancel
Save