Home-AssistantConfig/config/shell_scripts/gitupdate.sh

17 lines
380 B
Bash
Raw Normal View History

2018-01-02 00:00:45 +00:00
#!/bin/bash
cd /home/hass/docker_files
docker-compose exec home-assistant python -m homeassistant --config /config --script check_config
2018-01-02 00:00:45 +00:00
cd /home/hass/docker_files/homeassistant
2018-01-02 00:00:45 +00:00
git add .
git status
echo -n "Enter the Description for the Change: [Minor Edit] "
2018-01-02 00:00:45 +00:00
read CHANGE_MSG
CHANGE_MSG=${CHANGE_MSG:-Minor Edit}
2018-01-02 00:00:45 +00:00
git commit -m "${CHANGE_MSG}"
git push origin master
cd ~
2018-01-02 00:00:45 +00:00
exit