#!/bin/bash
cd /home/homeassistant/.homeassistant
source /srv/homeassistant/bin/activate
hass --script check_config
git add .
git status
echo -n "Enter the Description for the Change: " [Minor Update]
read CHANGE_MSG
git commit -m "${CHANGE_MSG}"
git push origin master
exit
I would like to add the command to enter the virtual environment and then continue with the scrips, how do I do that? I am struggling to continue wit the script as a homassistant user.
Off the top of my head I can’t remember, it is possible, but I just wanted to pop in and ask why you want to? The files are still the files and will be pushed to GitHub all the same.